CGMouseButton
Constants that specify buttons on a one, two, or three-button mouse.
Declaration
enum CGMouseButtonOverview
Quartz supports up to 32 mouse buttons. The first three buttons are specified using these three constants. Additional buttons are specified in USB order using the integers 3 to 31.
These constants are used:
In the function init(mouseEventSource:mouseType:mouseCursorPosition:mouseButton:) to specify the button that’s changing state.
In the function buttonState(_:button:) to specify the button that’s being tested.
To specify the value of the
kCGMouseEventButtonNumberevent field when modifying an event.