GamePad Op

GamePad

Outputs the button states of a gamepad


<p>to use this, connect to a pad of <a href="/op/Ops.Devices.GamePad.GamePads">Ops.Devices.GamePad.GamePads</a></p>


Full Name
  • Ops.Devices.GamePad.GamePad
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch 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 In Editor

INPUT PORTS


GamePad Data (Object)
Analog to Digital (Number:

<i>boolean</i>

)

OUTPUT PORTS


ID (String)
Axes (Array)
Pad Left (

<i>boolean</i>

Number)

Pad Right (

<i>boolean</i>

Number)

Pad Up (

<i>boolean</i>

Number)

Pad Down (

<i>boolean</i>

Number)

Button 1 (

<i>boolean</i>

Number)

Button 2 (

<i>boolean</i>

Number)

Button 3 (

<i>boolean</i>

Number)

Button 4 (

<i>boolean</i>

Number)

Left Shoulder (Number)
Left Shoulder Bottom (Number)
Right Shoulder (Number)
Right Shoulder Bottom (Number)

Patches using GamePad

  • Examples
  • Public
  • My Patches