Skip to content

Input functions

buttons_to_inputs

source

function buttons_to_inputs(x: number, y: number, buttons: BUTTON): INPUTS
x: number
y: number
buttons: BUTTON

Returns INPUTS

Converts (x, y, BUTTON) to INPUTS

get_io

documented onlysource

function get_io(): ImGuiIO

Returns ImGuiIO

Returns: ImGuiIO for raw keyboard, mouse and xinput gamepad stuff.

get_raw_input

source

function get_raw_input(): RawInput?

Returns RawInput? (may be nil)

Returns RawInput, a game structure for raw keyboard and controller state

mouse_position

source

function mouse_position(): number, number

Returns number, number

Current mouse cursor position in screen coordinates.