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