Ejemplo n.º 1
0
 public AcceleratorKey DetermineAccelerator(Types.Function Function)
 {
     foreach (var accPair in Accelerators)
     {
         if (accPair.Value.Function == Function)
         {
             return(accPair.Value);
         }
     }
     return(null);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public virtual bool ApplyFunction(Types.Function Function)
 {
     return(false);
 }
Ejemplo n.º 5
0
 public AcceleratorKey(Keys Key, Types.Function Function)
 {
     this.Key      = Key;
     this.Function = Function;
 }
Ejemplo n.º 6
0
 public virtual void ApplyFunction(Types.Function Function)
 {
 }
Ejemplo n.º 7
0
 public AcceleratorKey(Keys Key, Keys Key2, Types.Function Function)
 {
     this.Key          = Key;
     this.SecondaryKey = Key2;
     this.Function     = Function;
 }