π©utils
Functions:
get_choked_commands
utils.get_choked_commands():
number
Returns the number of choked commands.
get_clipboard
utils.get_clipboard():
string
Returns from the clipboard.
set_clipboard
utils.set_clipboard(text: string)
Name | Type | Description |
---|---|---|
text |
| text |
Sets the text to the clipboard.
get_active_key
utils.get_active_key(key: number):
boolean
Name | Type | Description |
---|---|---|
key |
| Key to check |
Returns true
, if the button is active.
get_cursor_position
utils.get_cursor_position():
vector_2d
Returns the current mouse position.
mouse_rect
utils.mouse_rect(x: number, y: number, width: number, height: number):
boolean
Name | Type | Description |
---|---|---|
x |
| X position |
y |
| |
width |
| |
height |
|
Returns if the mouse is at the specified position.
get_mouse_scroll
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.
Last updated