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; }
bool IGameInput.GetButtonDown(InputKey key) { return(GetButtonDown(KeyMap.GetMappedKey(key))); }
bool IGameInput.GetButtonPressed(InputKey key) { return(GetButtonPressed(KeyMap.GetMappedKey(key))); }
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); }