Skip to main content

Gamepad

Gamepad blocks are used to react to controller input and read current gamepad state values.

Event blocks

When gamepad button is

block_gamepad_event_when_button_is.svgblock_gamepad_event_when_button_is_sony.svg

Triggers when the selected gamepad button matches the configured state.

  • Type: event block
  • Button options (Xbox layout): A, B, X, Y, LB, RB, LT, RT, LSB, RSB
  • Button options (Sony layout): cross, circle, square, triangle, L1, R1, L2, R2, L3, R3
  • State options: pressed, released

When gamepad D-pad is

block_gamepad_event_when_dpad_is.svg

Triggers when D-pad direction/state matches the selected condition.

  • Type: event block
  • Direction options: up, down, left, right
  • State options: pressed, released

When gamepad thumbstick is

block_gamepad_event_when_thumbstick_is.svg

Triggers when thumbstick condition matches selected options.

Based on current options, this block supports:

  • Stick selection: left / right

  • Direction/state selection: up, down, left, right, moved, released

  • Type: event block

  • Typical use: react to directional movement or stick release

Value blocks

Gamepad button value (boolean)

block_gamepad_button_value_boolean.svgblock_gamepad_button_value_boolean_sony.svg

Returns current state of selected gamepad button.

  • Type: value block
  • Output: true/false
  • Button options (Xbox layout): A, B, X, Y, LB, RB, LT, RT, LSB, RSB
  • Button options (Sony layout): cross, circle, square, triangle, L1, R1, L2, R2, L3, R3
  • State options: pressed, released

Gamepad D-pad button value (boolean)

block_gamepad_dpad_button_value_boolean.svg

Returns whether selected D-pad direction is currently active.

  • Type: value block
  • Output: true/false
  • Direction options: up, down, left, right
  • State options: pressed, released

Gamepad thumbstick value (float)

block_gamepad_thumbstick_value_float.svg

Returns numeric thumbstick axis value.

  • Type: value block
  • Output: numeric (float)
  • Default range: -1 to 1
  • Optional range in gamepad settings: -100 to 100
  • Stick options: left, right
  • Axis options: x-axis / y-axis

Gamepad trigger pressure value (float)

block_gamepad_trigger_pressure_value_float.svgblock_gamepad_trigger_pressure_value_float_sony.svg

Returns trigger pressure value for selected trigger.

  • Type: value block
  • Output: numeric (float)
  • Default range: -1 to 1
  • Optional range in gamepad settings: -100 to 100
  • Trigger options (Xbox layout): LT, RT
  • Trigger options (Sony layout): L2, R2