Interface IInput
Interface for input devices.
Inherited Members
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public interface IInput : IDisposable
Methods
GamePadGetState(PlayerIndex)
Get the current state of a gamepad indentify by index.
Declaration
GamePadState GamePadGetState(PlayerIndex playerIndex)
Parameters
Type | Name | Description |
---|---|---|
PlayerIndex | playerIndex | Index of the player. |
Returns
Type | Description |
---|---|
GamePadState | Game pad state. |
KeyboardGetState()
Keyboards the state of the get.
Declaration
KeyboardState KeyboardGetState()
Returns
Type | Description |
---|---|
KeyboardState | Keyboard state. |
MouseGetState()
Mouses the state of the get.
Declaration
MouseState MouseGetState()
Returns
Type | Description |
---|---|
MouseState | Mouse state. |
SetGamePadGetVibration(PlayerIndex, float, float, float, float)
Set the speed of the gamepads 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 is everything Ok, false if doesn't exist the player index. |
TouchPanelGetState(ref TouchPanelState)
Touches the state of the panel get.
Declaration
void TouchPanelGetState(ref TouchPanelState state)
Parameters
Type | Name | Description |
---|---|---|
TouchPanelState | state | Touch panel state. |