MouseEvent.button

the button that was pressed or released; 1 for the first button, 2 for the second button, and 3 for the third button, etc.

class MouseEvent
int button;

Meta