Property | Type | Description | |
---|---|---|---|
CurrentKeyboardState | |||
CurrentMouseState | Microsoft.Xna.Framework.Input.MouseState | ||
LastKeyboardState | KeyboardState | ||
LastMouseState | MouseState |
Method | Description | |
---|---|---|
InputState ( ) : System.Collections.Generic |
Constructs a new input state.
|
|
IsMenuCancel ( ) : bool |
Checks for a "menu cancel" input action. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When the action is detected, the output playerIndex reports which player pressed it.
|
|
IsMenuDown ( ) : bool |
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.
|
|
IsMenuLeft ( ) : bool | ||
IsMenuRight ( ) : bool |
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.
|
|
IsMenuSelect ( ) : bool |
Checks for a "menu select" input action. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When the action is detected, the output playerIndex reports which player pressed it.
|
|
IsMenuUp ( ) : bool |
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.
|
|
IsNewKeyPress ( Keys key ) : bool |
Helper for checking if a key was newly pressed during this update. The controllingPlayer parameter specifies which player to read input for. If this is null, it will accept input from any player. When a keypress is detected, the output playerIndex reports which player pressed it.
|
|
IsPauseGame ( ) : bool |
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.
|
|
Update ( ) : void |
Reads the latest state of the keyboard and gamepad.
|
public InputState ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public KeyboardState,Microsoft.Xna.Framework.Input CurrentKeyboardState | ||
return |
public MouseState,Microsoft.Xna.Framework.Input CurrentMouseState | ||
return | Microsoft.Xna.Framework.Input.MouseState |