public static bool IsSpinPressed(Keyboard inputKeyboard, IList <JoyStick> inputJoysticks) { if (KeyMap.Instance.Spin is Keyboard.Modifier) { if (inputKeyboard.IsModifierDown((Keyboard.Modifier)KeyMap.Instance.Spin)) { return(true); } } else { if (inputKeyboard.IsKeyDown((KeyCode)KeyMap.Instance.Spin) || FrameWorkStaticHelper.GetJoystickButton(inputJoysticks, KeyMap.Instance.JoystickSpin)) { return(true); } } return(false); }
public static bool IsEscapePressed(Keyboard inputKeyboard, IList <JoyStick> inputJoysticks) { return(inputKeyboard.IsKeyDown(KeyMap.Instance.Escape) || FrameWorkStaticHelper.GetJoystickButton(inputJoysticks, KeyMap.Instance.JoystickEscape)); }
public static bool IsEnterPressed(Keyboard inputKeyboard, IList <JoyStick> inputJoysticks) { return(inputKeyboard.IsKeyDown(KeyMap.Instance.Enter) || inputKeyboard.IsKeyDown(KeyCode.KC_NUMPADENTER) || FrameWorkStaticHelper.GetJoystickButton(inputJoysticks, KeyMap.Instance.JoystickEnter) || FrameWorkStaticHelper.GetJoystickButton(inputJoysticks, KeyMap.Instance.JoystickGun)); }