VgaGames 3 - Network man-pages

[.. upper level ..]

VG3_nw_mouse_ispressed()

[added in version 1.4]

Return which mouse-buttons are pressed for a specific client.
SYNTAX
int VG3_nw_mouse_ispressed(struct vg3_nwclient *nwclnt, int clnr, int *left, int *middle, int *right, int flag)

FUNCTION PARAMETERS
nwclnt Network-struct
clnr Client-number
left If not NULL, it returns whether the left mouse-button is pressed
middle If not NULL, it returns whether the middle mouse-button is pressed
right If not NULL, it returns whether the right mouse-button is pressed
flag Kind of mouse-button-pressing: one of the values of VGAG3_PRESSED

RETURN VALUE
Returns whether any mouse-button is (new) pressed.

DESCRIPTION
Return whether and which buttons of the mouse are pressed for a specific client. If flag is VGAG3_IS_PRESSED, the return value will be 1, if the/any mouse-button is being pressed. If flag is VGAG3_IS_NEW_PRESSED, the return value will be 1, if the/any mouse-button is new pressed and has not been asked before with this function. Sending mouse-data must have been activated by calling VG3_nw_addmouse(). This function replaces VG3_mouse_ispressed().

SEE ALSO
VG3_nw_addmouse() VG3_nw_mouse_position()