The central Input Manager Class for the Vertices Engine. This handles all types of input, from Keyboard, Mouse, GamePad touch and gesture support.
More...
|
static void | InitScene () |
| Input is Reinitialised at the start of each scene.
|
|
static void | Update () |
| Reads the latest state of the keyboard and gamepad and mouse/touchpad.
|
|
static bool | IsMenuSelect () |
| Checks for a "menu select" input action such as Space or Enter Key, A or Start buttons, Mouse Click or Touch Release.
|
|
static bool | IsMenuPressed () |
| Checks for a "menu select" press such as Space or Enter Key, A or Start buttons, Mouse Click or Touch Release.
|
|
static bool | IsMenuReleased () |
| Checks for a "menu select" release such as Space or Enter Key, A or Start buttons, Mouse Click or Touch Release.
|
|
static bool | IsNewMainInputDown () |
| Cross Platform Main Input Check. Checks for New Left Click Down, New Button A Press or New Touch Pressed.
|
|
static bool | IsMainInputDown () |
| Cross Platform Main Input Check. Checks for Left Click Down, Button A Press or Touch Pressed.
|
|
static bool | IsNewMainInputUp () |
| Cross Platform Main Input Check Up. Checks for New Left Click Release, New Button A Release or New Touch Release.
|
|
static bool | IsMainInputUp () |
|
static bool | IsMenuUp () |
| Checks for a "menu up" input action. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player.
|
|
static bool | IsMenuDown () |
| Checks for a "menu down" input action. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player.
|
|
static bool | IsPauseGame () |
| Checks for a "pause the game" input action. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player.
|
|
static bool | IsMenuCancel () |
| Checks for a "menu cancel" input action.
|
|
static bool | IsNewMainNavDown () |
|
static bool | IsNewMainNavUp () |
|
static bool | IsNewMainNavLeft () |
|
static bool | IsNewMainNavRight () |
|
static bool | IsNewMainSlideLeft () |
|
static bool | IsNewMainSlideRight () |
|
static void | SetCursorControllerPlayer (PlayerIndex playerIndex) |
| Sets which player is controlling the cursor currently. This is useful for multiplayer setup.
|
|
static void | ResetCursorControllingPlayer () |
| Resets the controlling player index to Player One.
|
|
static bool | IsNewButtonPressed (Buttons button) |
| Returns the boolean of whether of GamePad Button has been newly Pressed. The default is for Player One, but you can pass the PlayerIndex as an optional Variable.
|
|
static bool | IsNewButtonPressed (Buttons button, PlayerIndex PlayerIndex) |
|
static bool | IsNewButtonReleased (Buttons button) |
| Returns the boolean of whether of GamePad Button has been newly Released. The default is for Player One, but you can pass the PlayerIndex as an optional Variable.
|
|
static bool | IsNewButtonReleased (Buttons button, PlayerIndex PlayerIndex) |
|
static bool | IsButtonPressed (Buttons button) |
| Returns the boolean of whether of GamePad Button is Pressed. The default is for Player One, but you can pass the PlayerIndex as an optional Variable.
|
|
static bool | IsButtonPressed (Buttons button, PlayerIndex PlayerIndex) |
|
static bool | IsButtonPressed (Buttons button, int PlayerIndex) |
|
static bool | IsButtonReleased (Buttons button) |
| Returns the boolean of whether of GamePad Button is Released. The default is for Player One, but you can pass the PlayerIndex as an optional Variable.
|
|
static bool | IsButtonReleased (Buttons button, PlayerIndex PlayerIndex) |
|
static bool | IsButtonReleased (Buttons button, int PlayerIndex) |
|
static bool | IsNewLeftThumbstickUp () |
|
static bool | IsNewLeftThumbstickDown () |
|
static bool | IsNewLeftThumbstickLeft () |
|
static bool | IsNewLeftThumbstickRight () |
|
static bool | IsNewKeyPress (Keys key) |
| Helper for checking if a key was newly pressed during this update.
|
|
static bool | IsNewKeyRelease (Keys key) |
|
static bool | IsKeyDown (Keys key) |
| Is the specified key currently down?
|
|
static bool | IsMouseButtonDown () |
|
static bool | IsNewMouseButtonPress (MouseButtons button) |
| Helper for checking if a mouse button was newly pressed during this update.
|
|
static bool | IsNewMouseButtonRelease (MouseButtons button) |
| Checks if the requested mouse button is released.
|
|
static bool | IsMouseButtonPressed (MouseButtons button) |
| Ises the mouse button pressed.
|
|
static bool | IsNewTouchPressed () |
| Is a New Screen Touch pressed.
|
|
static bool | IsNewTouchReleased () |
| Is a New Screen Touch released.
|
|
static bool | IsTouchPressed () |
| Is there at least one touch in the touch collection.
|
|
static bool | IsTouchReleased () |
|
|
static Vector2 | Cursor [get, set] |
| Gets or sets the cursor position.
|
|
static Vector2 | PreviousCursor [get, set] |
|
static bool | IsCursorInsideViewport [get] |
| Returns whether the cursor is inside the window or not.
|
|
static bool | IsCursorVisible [get, set] |
| Gets or sets a value indicating whether the custom cusor in T:VerticesEngine.Input.vxvxInput is visible.
|
|
static Rectangle | CursorPixel [get] |
| The cursors pixel. This is mainly used for GUI interesection.
|
|
static vxInputCursorRenderer | CursorRenderer [get] |
| An extensible class which Handles visual logic for drawing the cursor, and how the cursor should visually change based on input state. Inherit this class to create your own custom cursor visuals.
|
|
static Vector2 | DragDistance [get] |
|
static bool | IsCursorMoved [get] |
|
static bool | IsCursorValid [get] |
|
static Vector2 | CursorScreenScale [get] |
|
static InputType | InputType [get] |
| What is the current input type for the main player.
|
|
static PlayerIndex | PlayerControllingCursor [get] |
| The player index who is currently controlling the cursor.
|
|
static GamePadState | GamePadState [get] |
| Gets the state of the game pad for the currently conrtolling game pad.
|
|
static GamePadState | PreviousGamePadState [get] |
| Gets the state of the previous game pad state for Player One.
|
|
static KeyboardState | KeyboardState [get] |
|
static KeyboardState | PreviousKeyboardState [get] |
|
static MouseState | PreviousMouseState [get] |
|
static int | ScrollWheelDelta [get] |
| Gets the Change in Scroll wheel position since the last update.
|
|
static bool | IsNewLeftMouseClick [get] |
|
static TouchCollection | TouchCollection [get] |
|
static TouchCollection | PreviousTouchCollection [get] |
|
static GamePadState | VirtualState [get] |
|
static GamePadState | PreviousVirtualState [get] |
|
The central Input Manager Class for the Vertices Engine. This handles all types of input, from Keyboard, Mouse, GamePad touch and gesture support.