window_mouse_get_x()

From ENIGMA
Jump to navigation Jump to search

Description

Gets the x value of the mouse coordinate relative to the game window, and returns the result.

Parameters

Parameter Description
none this function has no parameters

Return Values

integer: Returns the x value of the mouse coordinate relative to the window.

Example Call

// demonstrates getting the window mouse position
var wmx, wmy;
wmx = window_mouse_get_x();
wmy = window_mouse_get_y();