rb.input.is_down(code: string) -> boolean | whether the key, mouse button, or controller button is held |
rb.input.duration(code: string) -> number | milliseconds the key, mouse button, or controller button has been held, 0 when it is not |
rb.input.axis(name: string) -> number | a controller axis, 0 at rest; an unknown name raises Input.GetAxis: unknown axis '<name>'; min_sdk 3.11.0 |
rb.input.devices() -> { InputDevice } | the devices Rebind has identified, described under Devices; empty in software mode; min_sdk 3.12.0 |
rb.input.keys() -> { string } | every held key, mouse button and controller button |
rb.input.mouse_pos() -> MousePos | { x, y }, the cursor position |
rb.input.modifiers() -> ModifierState | { ctrl, shift, alt, win } booleans, either side |