-
Notifications
You must be signed in to change notification settings - Fork 0
lobs.hotkey
Sheepolution edited this page Jan 25, 2024
·
1 revision
function hotkey.isDown(...string)
-> is_down: booleanCheck if a hotkey is being held down.
@param ... — The names of the hotkeys to check.
@return is_down — True if the hotkey is being held down, false otherwise.
fun(name: string, pressed: boolean)A callback that is called when a hotkey is pressed or released.
@param name — The name of the hotkey that was pressed or released.
@param pressed — Whether the hotkey was pressed, otherwise it was released.
function hotkey.register(name: string, description: string, callback?: function)Register a hotkey.
@param name — The name of the hotkey to refer to.
@param description — The description of the hotkey, shown to the user.
@param callback — Optional. The callback to call when the hotkey is pressed.