-
-
Notifications
You must be signed in to change notification settings - Fork 18
window_mouse_get_x
drewmccluskey edited this page Feb 12, 2019
·
3 revisions
Returns mouse x position
window_mouse_get_x()
Returns: int
Returns the mouse's x position. This function can be used for positioning objects at the location of the mouse or checking if the mouse is over an object.
int mouse_x = window_mouse_get_x();
show_debug_message(mouse_x.ToString());
The above code will return the x position of the mouse in the current window.
Back to window-functions