Skip to content

window_mouse_get_x

drewmccluskey edited this page Feb 12, 2019 · 3 revisions

window_mouse_get_x

Returns mouse x position

Syntax:

window_mouse_get_x()

Returns: int

Description:

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.

Example:

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

Clone this wiki locally