beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

GamePad Op

Ops.Devices.GamePad.GamePad


GamePad
Collections:hardware  
Related ops:  

Op author: pandur

Outputs the button states of a gamepad


summary (oneliner)

to use this, connect to a pad of Ops.Devices.ListGamePads



doc

issues

youtube id

caniuse query

collections

related ops

Inputs

GamePad Data (Object)

Analog to Digital (boolean /Number)

Outputs

ID (Number)

Axes (Array)

Pad Left (boolean Number)

Pad Right (boolean Number)

Pad Up (boolean Number)

Pad Down (boolean Number)

Button 1 (boolean Number)

Button 2 (boolean Number)

Button 3 (boolean Number)

Button 4 (boolean Number)

Left Shoulder (Number)

Left Shoulder Bottom (Number)

Right Shoulder (Number)

Right Shoulder Bottom (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

gamepad example

character controller driven by gamepad

sprite sheet by gato pixelizado (https://gato-pixelizado.itch.io/)
https://gato-pixelizado.itch.io/top-down-game-2d-character-18x18

Open Example In Editor


Examples using GamePad ()

Public Patches using GamePad ()