CursorKeys Op

CursorKeys

get the state of your keyboards arrow keys



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


Example Patch CursorKeys

character controller using WASD keyboard keys that outputs sprite sheet texture offsets.

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


canvas only (Number:

<i>boolean</i>

)

Cursor Keys (Number:

<i>boolean</i>

)

WASD (Number:

<i>boolean</i>

)

Active (Number:

<i>boolean</i>

)

OUTPUT PORTS


Degree (Number)
Up (

<i>boolean</i>

Number)

Up Pressed (Trigger)
Down (

<i>boolean</i>

Number)

Down Pressed (Trigger)
Left (

<i>boolean</i>

Number)

Left Pressed (Trigger)
Right (

<i>boolean</i>

Number)

Right Pressed (Trigger)
Any Button Pressed (Number)

Patches using CursorKeys

  • Examples
  • Public
  • My Patches

Changelog


bugfixFixed: Active toggle was not workinguser avatarpandur - 2024-05-08 17:43
featureAdded trigger outputs for each directional keyuser avatarpandur - 2024-05-11 11:02
featureAdded output for directional degree and if any button is presseduser avatarpandur - 2024-08-22 16:00