Struct InputManager.GamepadState
Per-pad snapshot: buttons bitset + stick/trigger axes.
Assembly: PopcorningGuineaPig.Engine.dll
public struct InputManager.GamepadState
Fields
|
Edit this page
View Source
Declaration
public const int ButtonCount = 18
Field Value
|
Edit this page
View Source
Declaration
Field Value
|
Edit this page
View Source
Declaration
Field Value
|
Edit this page
View Source
Declaration
public Vector2 RightStick
Field Value
|
Edit this page
View Source
Declaration
public float RightTrigger
Field Value
Properties
|
Edit this page
View Source
Declaration
public bool HasButtons { get; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public bool ButtonDown(GamepadButton button)
Parameters
| Type |
Name |
Description |
| GamepadButton |
button |
|
Returns
|
Edit this page
View Source
Declaration
public bool ButtonDown(int buttonIndex)
Parameters
| Type |
Name |
Description |
| int |
buttonIndex |
|
Returns
|
Edit this page
View Source
Declaration
public static InputManager.GamepadState Read(int gamepadIndex, bool raylib, bool xinput)
Parameters
| Type |
Name |
Description |
| int |
gamepadIndex |
|
| bool |
raylib |
|
| bool |
xinput |
|
Returns