EventButton.button

Get button field.

  1. uint button [@property getter]
    class EventButton
    @property
    uint
    button
    ()
  2. uint button [@property setter]

Return Value

Type: uint

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.