Mouse button and key statesΒΆ

MK_LBUTTON

Left mouse button pressed.

MK_RBUTTON

Right mouse button pressed.

MK_MBUTTON

Middle mouse button pressed.

MK_SHIFT

Shift key pressed.

MK_CONTROL

Control key pressed.

MK_ALT

ALT key pressed.

Key and mouse button states. These have the following uses:

1

Testing the virtkey argument sent by the EV_MOUSE_OVER event, to indicate whether the keys and buttons were pressed at the point when the event was generated.

2

Testing the key_state argument of the target window event function during a drag and drop operation, to determine the state of the mouse buttons and the shift and control keys.


RELATED TOPICS

The include file sculptor.h