Vendetta/helium/api/get mouse abs pos
From Quasar-RCE
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