VgaGames4

VgaGames4 - input man-pages

[.. upper level ..]

# vg4->input->mouse_pressed()

Return pressed mouse-buttons.

SYNTAX
VG_BOOL vg4->input->mouse_pressed(VG_BOOL *left, VG_BOOL *middle, VG_BOOL *right)
FUNCTION PARAMETERS

left | For returning whether left button is pressed, (may be NULL)
middle | For returning whether middle button is pressed, (may be NULL)
right | For returning whether right button is pressed, (may be NULL)

RETURN VALUE
Returns whether one or more buttons are pressed: - VG_TRUE: Yes - VG_FALSE: No
DESCRIPTION
Return pressed mouse-buttons. If mouse-grabbing is activated, the mouse must be catched in the window. To catch the mouse into the window or release it from the window, if mouse-grabbing is activated, use: [CTRL]+[Backspace]
SEE ALSO
vg4->input->mouse_newpressed() vg4->nw->mouse_pressed()