struct Espresso::MouseButtonEvent
- Espresso::MouseButtonEvent
- Espresso::MouseEvent
- Espresso::WindowEvent
- Struct
- Value
- Object
Overview
Event triggered when a mouse button is pressed or released.
Defined in:
espresso/events/mouse_button_event.crInstance Method Summary
-
#button : MouseButton
Button that was pressed or released.
-
#left?
Indicates whether the left (primary) mouse button was involved.
-
#middle?
Indicates whether the middle mouse button was involved.
-
#modifiers : ModifierKey
Modifier keys held down when the event occurred.
-
#pressed?
Indicates whether the button was pressed.
-
#released?
Indicates whether the button was released.
-
#right?
Indicates whether the right (secondary) mouse button was involved.
-
#state : ButtonState
New state of the mouse button.