Read Gamepad State
Reads the current state of the gamepad
Installation
To use this Node, you must enable omni.graph.nodes
in the Extension Manager.
Inputs
Name |
Type |
Description |
Default |
---|---|---|---|
Gamepad ID (gamepadId) |
|
Gamepad id number starting from 0 |
0 |
Element (gamepadElement) |
|
The gamepad element to check the state of |
Left Stick X Axis |
Deadzone (deadzone) |
|
Threshold from [0, 1] that the value must pass for it to be registered as input |
0.1 |
Outputs
Name |
Type |
Description |
Default |
---|---|---|---|
isPressed |
|
True if the gamepad element is currently pressed, false otherwise |
|
value |
|
Value of how much the gamepad element is being pressed. [0, 1] for buttons [-1, 1] for stick and trigger |