openrndr / org.openrndr / MouseEvent

MouseEvent

data class MouseEvent (source)

Mouse event message

Constructors

<init>

Mouse event message

MouseEvent(position: Vector2, rotation: Vector2, dragDisplacement: Vector2, type: MouseEventType, button: MouseButton, modifiers: Set<KeyModifier>)

Properties

button

val button: MouseButton

dragDisplacement

val dragDisplacement: Vector2

modifiers

val modifiers: Set<KeyModifier>

position

val position: Vector2

propagationCancelled

specifies if the propagation of this event is cancelled

var propagationCancelled: Boolean

rotation

val rotation: Vector2

type

val type: MouseEventType

Functions

cancelPropagation

cancel propagation of this MouseEvent message

fun cancelPropagation(): Unit