VgaGames 3 - Event man-pages

[.. upper level ..]

VG3_mouse_ispressed()

Returns pressed mouse-buttons.
SYNTAX
int VG3_mouse_ispressed(struct vg3_window *wstruct, int *left, int *middle, int *right, int flag)

FUNCTION PARAMETERS
wstruct Window-struct
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. 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.

SEE ALSO
VG3_mouse_position()