input
The input namespace. Nyx Lua API v1.
input.key_down
Section titled input.key_downinput.key_down(key: string | number) -> booleanHeld now. Nyx polls a key from the first time the script reads it until the script unloads, so the first read of a key nothing polled yet is false. False while the player types into the game's chat or console, or Nyx's chat.
input.key_pressed
Section titled input.key_pressedinput.key_pressed(key: string | number) -> booleanWent down this frame. Nyx polls a key from the first time the script reads it until the script unloads, so the first read of a key nothing polled yet may miss a press that frame. False while the player types into the game's chat or console, or Nyx's chat.
input.mouse_pos
Section titled input.mouse_posinput.mouse_pos() -> vectorCursor position.
input.wheel
Section titled input.wheelinput.wheel() -> numberWheel movement this frame.
Nyx Lua API v1 · release commit-4b659d9c3810 · d0f772c99281