π©utils
Last updated
Last updated
utils.get_choked_commands():
number
Returns the number of choked commands.
utils.get_clipboard():
string
Returns from the clipboard.
utils.set_clipboard(text: string)
text
string
text
Sets the text to the clipboard.
utils.get_active_key(key: number):
boolean
key
number
Key to check
Returns true
, if the button is active.
utils.get_cursor_position():
vector_2d
Returns the current mouse position.
utils.mouse_rect(x: number, y: number, width: number, height: number):
boolean
x
number
X position
y
number
width
number
height
number
Returns if the mouse is at the specified position.
utils.get_mouse_scroll():
number
Returns -1.0
if the mouse wheel is spinning down, 1.0
if the mouse wheel is spinning up, and 0.0
if the mouse wheel is not rotating.