public Keys?ReverseMap(SNESButton button) { if (_reverseDict.ContainsKey(button)) { return(_reverseDict[button]); } return(null); }
public void SetKeyUp(SNESButton button) { _joypad1State &= ~(1 << (int)button) & 0xfff; }
public void SetKeyDown(SNESButton button) { _joypad1State |= 1 << (int)button; }
public void ChangeMap(Keys key, SNESButton button) { _dict.Add(key, button); _reverseDict.Add(button, key); }