Look for both left and right mouse click -Information provided by Jo Even Skarstein

To look for any mouse button when using EVNT_MULTI or EVNT_BUTTON you do like this:


This is how it works:

Bit 8 (equals 256) enables wait for both/either button
Thus you add 256 to the number of expected mouse clicks (Usually this is set to 2)

256+2 = 258


EVNT_BUTTON
Syntax: EVNT_BUTTON(ev_mbclicks,ev_mbmask,ev_mbstate[,mx,my,button,k_state])
Action: Waits for one or more mouse clicks, and returns the number of clicks.
Back to GFA-page