Struct GamePadState
Represents the gamepad state.
Implements
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public struct GamePadState : IController
Fields
Buttons
Gamepad buttons.
Declaration
public GamePadButtons Buttons
Field Value
Type | Description |
---|---|
GamePadButtons |
DPad
Directional buttons.
Declaration
public GamePadDPad DPad
Field Value
Type | Description |
---|---|
GamePadDPad |
ThumbSticks
Thumbsticks.
Declaration
public GamePadThumbSticks ThumbSticks
Field Value
Type | Description |
---|---|
GamePadThumbSticks |
Triggers
Represents the gamepad triggers.
Declaration
public GamePadTriggers Triggers
Field Value
Type | Description |
---|---|
GamePadTriggers |
Properties
IsConnected
Gets or sets a value indicating whether this instance is connected.
Declaration
public bool IsConnected { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Methods
IsButtonPressed(Buttons)
Determines whether the specified button is pressed.
Declaration
public bool IsButtonPressed(Buttons button)
Parameters
Type | Name | Description |
---|---|---|
Buttons | button | The specified button. |
Returns
Type | Description |
---|---|
bool |
|
IsButtonReleased(Buttons)
Determines whether the specified button is released.
Declaration
public bool IsButtonReleased(Buttons button)
Parameters
Type | Name | Description |
---|---|---|
Buttons | button | The specified button. |
Returns
Type | Description |
---|---|
bool |
|