DrawSynchronizedGetMouseButton

Returns location of mouse and which button was pressed. Waits for button to be pressed.

Synopsis

int DrawSynchronizedGetMouseButton(Draw draw,DrawButton *button,double* x_user,double *y_user,
                       double *x_phys,double *y_phys)
Collective over Draw

Input Parameter

draw -the window to be used

Output Parameters

button - one of BUTTON_LEFT, BUTTON_CENTER, BUTTON_RIGHT
x_user, y_user - user coordinates of location (user may pass in 0).
x_phys, y_phys - window coordinates (user may pass in 0).

See Also

DrawGetMouseButton()

Location: src/draw/interface/dmouse.c
Graphics (Draw) Index
Table of Contents