Example #1
0
 public AcceleratorKey DetermineAccelerator(Types.Function Function)
 {
     foreach (var accPair in Accelerators)
     {
         if (accPair.Value.Function == Function)
         {
             return(accPair.Value);
         }
     }
     return(null);
 }
Example #2
0
        public bool FromChunk(GR.IO.FileChunk Chunk)
        {
            if (Chunk.Type != Types.FileChunk.SETTINGS_ACCELERATOR)
            {
                return(false);
            }

            GR.IO.IReader reader = Chunk.MemoryReader();

            Key      = (Keys)reader.ReadUInt32();
            Function = (C64Studio.Types.Function)reader.ReadUInt32();
            return(true);
        }
Example #3
0
        public bool FromChunk(GR.IO.FileChunk Chunk)
        {
            if (Chunk.Type != FileChunkConstants.SETTINGS_ACCELERATOR)
            {
                return(false);
            }

            GR.IO.IReader reader = Chunk.MemoryReader();

            Key          = (Keys)reader.ReadUInt32();
            Function     = (RetroDevStudio.Types.Function)reader.ReadUInt32();
            SecondaryKey = (Keys)reader.ReadUInt32();
            return(true);
        }
Example #4
0
 public virtual bool ApplyFunction(Types.Function Function)
 {
     return(false);
 }
Example #5
0
 public AcceleratorKey(Keys Key, Types.Function Function)
 {
     this.Key      = Key;
     this.Function = Function;
 }
Example #6
0
 public virtual void ApplyFunction(Types.Function Function)
 {
 }
Example #7
0
 public AcceleratorKey(Keys Key, Keys Key2, Types.Function Function)
 {
     this.Key          = Key;
     this.SecondaryKey = Key2;
     this.Function     = Function;
 }