FluxWareScripting
Back to site

keys

Keyboard state. GLFW key codes, the same ones the key event reports and the same ones a 'key' setting stores.

Functions

2 functions. Signatures are generated from the client, so they describe the build you are running.

keys.isPressed(key:number) -> boolean
keys.wasPressed(key:number) -> boolean

True once per press. Consumed by the first caller in a frame; use the 'key' event if two scripts need the same edge.