Vendetta/helium/api/get mouse abs pos

From Quasar-RCE
Revision as of 18:44, 5 June 2025 by Luxen (talk | contribs) (created get_mouse_abs_pos)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Obtains the pixel coordinates of the user's mouse within the game

Definition

helium.util.get_mouse_abs_pos(offset_x, offset_y) -> pos_x, pos_y

Arguments

offset_x: type number: optional offset from actual mouse x position offset_y: type number: optional offset from actual mouse y position

Returns

pos_x: type number: x coordinate of mouse (+ x_offset if provided) pos_y: type number: y coordinate of mouse (+ y_offset if provided)

Notes

(Not yet implemented): This function will use the last user touch/control press as the mouse coordinates on mobile/VR