Exemple #1
0
 public DPad(IGameInput inputDevice, InputKey left, InputKey right, InputKey up, InputKey down)
 {
     this.InputDevice = inputDevice;
     this.Left        = left;
     this.Right       = right;
     this.Up          = up;
     this.Down        = down;
 }
Exemple #2
0
 bool IGameInput.GetButtonDown(InputKey key)
 {
     return(GetButtonDown(KeyMap.GetMappedKey(key)));
 }
Exemple #3
0
 bool IGameInput.GetButtonPressed(InputKey key)
 {
     return(GetButtonPressed(KeyMap.GetMappedKey(key)));
 }
Exemple #4
0
 public XNAKeyboardInputDevice(InputMap <Keys> inputMap, InputKey left, InputKey right, InputKey up, InputKey down, Scene scene) : base(inputMap, scene)
 {
     dPad = new DPad(this, left, right, up, down);
 }