Skip to content

window_mouse_get_y

drewmccluskey edited this page Feb 12, 2019 · 3 revisions

window_mouse_get_y

Returns mouse y position

Syntax:

window_mouse_get_y()

Returns: int

Description:

Returns the mouse's y 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_y = window_mouse_get_y();
show_debug_message(mouse_y.ToString());

The above code will return the y position of the mouse in the current window.

Back to window-functions

Clone this wiki locally