Skip to content

obsi.keyboard

simadude edited this page Jan 26, 2024 · 1 revision

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
Clone this wiki locally