window_view_mouse_get_x( id );
|id||The id of the view to compare the mouse position to.|
This function will return the mouse x position relative to the
view selected. The following image illustrates how this works:
NOTE: For regular mouse functions see the section on Mouse Input.
var xx, yy;
xx = window_view_mouse_get_x(0);
yy = window_view_mouse_get_y(0);
if xx > 0 && xx < 32 && yy > 0 && yy < 32
b_press = true;
The above code will check for a mouse button being pressed, and if it is it then gets the mouse position relative to the view and compares it to see if a variable should be set to true.