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