EventButton.button

uint button() @property

Get button field.

Returns

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.

void button(uint propval) @property

Set button field.

Parameters

propvalthe 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.