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

CursorKeys Op

Ops.Devices.Keyboard.CursorKeys


CursorKeys
Collections:hardware  
Related ops:  

Op author: pandur

get the state of your keyboards arrow keys


summary (oneliner)



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

canvas only (boolean /Number)

Cursor Keys (boolean /Number)

WASD (boolean /Number)

Active (boolean /Number)

Outputs

Up (Number)

Down (Number)

Left (Number)

Right (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

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


Patches using CursorKeys