Input Functions
akesi lili provides input functions to handle user interactions, such as button presses and mouse movements. These functions allow you to detect and respond to various input events, enhancing the interactivity of your game.
btn
|button: Number|
Checks if the specified button is currently pressed.
Parameters
button: The button to check.0:A1:B2:Start3:Select4:Left5:Right6:Up7:Down8:Mouse
Returns
true if the button is pressed, false otherwise (Bool).
Example
is_pressed = btn(1)
mouse
||
Returns the current position of the mouse pointer.
Returns
A Map containing the mouse coordinates with x and y keys.
Example
mouse_pos = mouse()
print mouse_pos.x, mouse_pos.y
scroll_off
||
Returns the current scroll offset delta.
Returns
A Map containing the scroll offset delta with x and y keys.
Example
scroll = scroll_off()
print scroll.x, scroll.y
These input functions are essential for creating interactive and responsive game experiences in akesi lili.