window_view_mouse_get_x(id)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the mouse x coordinate with respect to the given view.

Parameters

Parameter Data Type Description
id integer index of the view, 0-7

Return Values

integer: Returns the x coordinate of the mouse with respect to the view.

Example Call

// demonstrates getting the mouse position relative to the 5th view
var xx, yy;
xx = window_view_mouse_get_x(4);
yy = window_view_mouse_get_y(4);