Normally button 1 is the left mouse button, 2 is the middle button, and 3 is the right button. On 2-button mice, the middle button can often be simulated by pressing both mouse buttons together.
EventButton.button
uint button() @propertyGet button field.
Returns
the button which was pressed or released, numbered from 1 to 5.
void button(uint propval) @propertySet button field.
Parameters
propval | the button which was pressed or released, numbered from 1 to 5. Normally button 1 is the left mouse button, 2 is the middle button, and 3 is the right button. On 2-button mice, the middle button can often be simulated by pressing both mouse buttons together. |