obsi.keyboard - simadude/obsi GitHub Wiki

This is a keyboard module for checking whether the keyboard key is down.

Functions of obsi.keyboard:

function description
obsi.keyboard.isDown Returns true if the key is held down.
obsi.keyboard.isScancodeDown Returns true if the key under the scancode is held down.

Functions

obsi.keyboard.isDown

Returns true if the key is held down.

Declared as:

obsi.keyboard.isDown(key: string) -> boolean

obsi.keyboard.isScancodeDown

Returns true if the key under the scancode is held down.

Declared as:

obsi.keyboard.isScancodeDown(scancode: number) -> boolean