Struct XRControllerGenericState
Represents the game pad state.
Implements
Inherited Members
Namespace: Evergine.Framework.XR
Assembly: Evergine.Framework.dll
Syntax
public struct XRControllerGenericState : IController
Fields
Button1
State of the first button.
Declaration
public ButtonState Button1
Field Value
Type | Description |
---|---|
ButtonState |
Button2
State of the second button.
Declaration
public ButtonState Button2
Field Value
Type | Description |
---|---|
ButtonState |
Grip
State of the grip button.
Declaration
public ButtonState Grip
Field Value
Type | Description |
---|---|
ButtonState |
Menu
State of the menu button.
Declaration
public ButtonState Menu
Field Value
Type | Description |
---|---|
ButtonState |
ThumbStick
Thumb sticks.
Declaration
public Vector2 ThumbStick
Field Value
Type | Description |
---|---|
Vector2 |
ThumbStickButton
State of the grip button.
Declaration
public ButtonState ThumbStickButton
Field Value
Type | Description |
---|---|
ButtonState |
Touchpad
TouchPad.
Declaration
public Vector2 Touchpad
Field Value
Type | Description |
---|---|
Vector2 |
Trigger
The trigger.
Declaration
public float Trigger
Field Value
Type | Description |
---|---|
float |
TriggerButton
The trigger button.
Declaration
public ButtonState TriggerButton
Field Value
Type | Description |
---|---|
ButtonState |
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(XRButtons)
Determines whether [is button pressed] [the specified button].
Declaration
public bool IsButtonPressed(XRButtons button)
Parameters
Type | Name | Description |
---|---|---|
XRButtons | button | the specified button. |
Returns
Type | Description |
---|---|
bool |
|
IsButtonReleased(XRButtons)
Determines whether [is button released] [the specified button].
Declaration
public bool IsButtonReleased(XRButtons button)
Parameters
Type | Name | Description |
---|---|---|
XRButtons | button | the specified button. |
Returns
Type | Description |
---|---|
bool |
|