window_views_mouse_get_x

Returns the x-coordinate of the mouse with respect to the views.

Syntax:

window_views_mouse_get_x();


Returns: Real


Description

This function returns the x-coordinate of the mouse with respect to all the active views and returns the same value mouse_x.

NOTE: For regular mouse functions see the section on Mouse Input.


Example:

myx = window_views_mouse_get_x();

This would set myx to the x coordinate of the mouse in the window relative to all active views.


Back: The Game Window
Next: window_views_mouse_get_y
© Copyright YoYo Games Ltd. 2017 All Rights Reserved