Struct GamePadState
Represents the game pad state.
Implements
Inherited Members
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
Direction buttons.
Declaration
public GamePadDPad DPad
Field Value
Type | Description |
---|---|
GamePadDPad |
ThumbSticks
Thumb sticks.
Declaration
public GamePadThumbSticks ThumbSticks
Field Value
Type | Description |
---|---|
GamePadThumbSticks |
Triggers
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 [is button pressed] [the specified button].
Declaration
public bool IsButtonPressed(Buttons button)
Parameters
Type | Name | Description |
---|---|---|
Buttons | button | the specified button. |
Returns
Type | Description |
---|---|
bool |
|
IsButtonReleased(Buttons)
Determines whether [is button released] [the specified button].
Declaration
public bool IsButtonReleased(Buttons button)
Parameters
Type | Name | Description |
---|---|---|
Buttons | button | the specified button. |
Returns
Type | Description |
---|---|
bool |
|