MouseEvent
data class MouseEvent( val position: Vector2, val rotation: Vector2, val dragDisplacement: Vector2, val type: MouseEventType, val button: MouseButton, val modifiers: Set<KeyModifier>)(source)
Represents a mouse event in a 2D GUI or application.
Constructors
Link copied to clipboard
constructor( position: Vector2, rotation: Vector2, dragDisplacement: Vector2, type: MouseEventType, button: MouseButton, modifiers: Set<KeyModifier>)
Properties
Link copied to clipboard
The mouse button involved in the event, represented by MouseButton.
Link copied to clipboard
The displacement vector caused by dragging, represented as a Vector2.
Link copied to clipboard
The set of key modifiers (such as Shift, Ctrl, or Alt) active during the mouse event, represented by KeyModifier.
Link copied to clipboard
specifies if the propagation of this event is cancelled
Link copied to clipboard
The type of the mouse event, represented by MouseEventType, such as click, drag, or scroll.
Functions
Link copied to clipboard
cancel propagation of this MouseEvent message