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)

uint

Gamepad id number starting from 0

0

Element (gamepadElement)

token

The gamepad element to check the state of

Left Stick X Axis

Deadzone (deadzone)

float

Threshold from [0, 1] that the value must pass for it to be registered as input

0.1

Outputs

Name

Type

Description

Default

isPressed

bool

True if the gamepad element is currently pressed, false otherwise

value

float

Value of how much the gamepad element is being pressed. [0, 1] for buttons [-1, 1] for stick and trigger