VgaGames 3 - Network man-pages

[.. upper level ..]

VG3_nw_mouse_position()

[added in version 1.4]

Return mouse-position inside the window of a specific client.
SYNTAX
void VG3_nw_mouse_position(struct vg3_nwclient *nwclnt, int clnr, int *xpos, int *ypos)

FUNCTION PARAMETERS
nwclnt Network-struct
clnr Client-number
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 of a specific client. The left upper corner has position [0, 0]. The right lower corner has position [width of window minus one, height of window minus one]. Sending mouse-data must have been activated by calling VG3_nw_addmouse(). This function replaces VG3_mouse_position().

SEE ALSO
VG3_nw_addmouse() VG3_nw_mouse_ispressed()