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: boolean)
Cursor Keys (Number: boolean)
WASD (Number: boolean)
Active (Number: boolean)

OUTPUT PORTS


Degree (Number)
Up (booleanNumber)
Up Pressed (Trigger)
Down (booleanNumber)
Down Pressed (Trigger)
Left (booleanNumber)
Left Pressed (Trigger)
Right (booleanNumber)
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