Interface IInput
Interface for input devices.
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public interface IInput
Methods
GamePadGetState(PlayerIndex)
Gets the current state of a gamepad identified by index.
Declaration
GamePadState GamePadGetState(PlayerIndex playerIndex)
Parameters
Type | Name | Description |
---|---|---|
PlayerIndex | playerIndex | Index of the player. |
Returns
Type | Description |
---|---|
GamePadState | Gamepad state. |
KeyboardGetState()
Gets the state of the keyboard.
Declaration
KeyboardState KeyboardGetState()
Returns
Type | Description |
---|---|
KeyboardState | Keyboard state. |
MouseGetState()
Gets the state of the mouse.
Declaration
MouseState MouseGetState()
Returns
Type | Description |
---|---|
MouseState | Mouse state. |
SetGamePadGetVibration(PlayerIndex, float, float, float, float)
Sets the speed of the gamepad's available vibration motors.
Declaration
bool SetGamePadGetVibration(PlayerIndex playerIndex, float leftMotor, float leftTrigger, float rightMotor, float rightTrigger)
Parameters
Type | Name | Description |
---|---|---|
PlayerIndex | playerIndex | Index of the player. |
float | leftMotor | The level of the left vibration motor. |
float | leftTrigger | The level of the left trigger vibration motor. |
float | rightMotor | The level of the right vibration motor. |
float | rightTrigger | The level of the right trigger vibration motor. |
Returns
Type | Description |
---|---|
bool | True if everything is OK, false if the player index doesn't exist. |
TouchPanelGetState(ref TouchPanelState)
Updates the state of the touch panel.
Declaration
void TouchPanelGetState(ref TouchPanelState state)
Parameters
Type | Name | Description |
---|---|---|
TouchPanelState | state | Touch panel state. |