On Gamepad Input

Event node which fires when a gamepad event occurs. This node only capture events on buttons, excluding triggers and sticks

Installation

To use this Node, you must enable omni.graph.action in the Extension Manager.

Inputs

Name

Type

Description

Default

Gamepad ID (gamepadId)

uint

Gamepad id number starting from 0. Each gamepad will be registered automatically with an unique ID monotonically increasing in the order they are connected. If gamepad is disconnected, the ID assigned to the remaining gamepad will be adjusted accordingly so the IDs are always continues and start from 0 Change this value to a non-existing ID will result an error prompt in the console and the node will not listen to any gamepad input.

0

Gamepad Element In (gamepadElementIn)

token

The gamepad button to trigger the downstream execution.

Face Button Bottom

Only Simulate On Play (onlyPlayback)

bool

When true, the node is only computed while Stage is being played.

True

Outputs

Name

Type

Description

Default

Pressed (pressed)

execution

Executes when gamepad element was pressed

Released (released)

execution

Executes when gamepad element was released

isPressed

bool

True if the gamepad button was pressed, False if it was released