VgaGames 3 - Event man-pages

[.. upper level ..]

VG3_mouse_position()

Returns mouse-position inside the window.
SYNTAX
void VG3_mouse_position(struct vg3_window *wstruct, int *xpos, int *ypos)

FUNCTION PARAMETERS
wstruct Window-struct
xpos If not NULL, it returns the x-position of the mouse (from 0 to width of window minus one)
ypos If not NULL, it returns the y-position of the mouse (from 0 to height of window minus one)

DESCRIPTION
Return the mouse-position inside the window. The left upper corner has position [0, 0]. The right lower corner has position [width of window minus one, height of window minus one].

SEE ALSO
VG3_mouse_ispressed()