comp • gb.qt4 • mouse • state

Mouse.State (gb.qt4)

Static Property Read State As Integer

Return the state of the mouse buttons when the mouse event was generated.

The state is an integer whose each bit represents the state of one button.

  • The bit 0 is set if the left button is pressed.

  • The bit 1 is set if the middle button is pressed.

  • The bit 2 is set if the right button is pressed.