input

is_key_down( vk ): bool

Returns if the key is being held down or not

Type

Name

Description

int

vk

The virtual key code you want to check

if ( input.is_key_down( 0x01 ) ) {

}

is_key_pressed( vk ): bool

Returns if the key was pressed or not

Type

Name

Description

int

vk

The virtual key code you want to check

if ( input.is_key_pressed( 0x01 ) ) {

}

is_cursor_in_bounds( x0, y0, x1, y1 ): bool

Returns if the mouse cursor is inside the given bounds or not

Type

Name

Description

float

x0

Starting position on the x axis

float

y0

Starting position on the y axis

float

x1

Ending position on the x axis

float

y1

Ending position on the y axis

get_cursor_pos(): vec2_t

Returns the position of the mouse cursor

Last updated

Was this helpful?