openrndr / org.openrndr / MouseEvent

MouseEvent

class MouseEvent

Constructors

<init>

MouseEvent(position: Vector2, rotation: Vector2, dragDisplacement: Vector2, type: MouseEventType, button: MouseButton, modifiers: Set<KeyboardModifier>, propagationCancelled: Boolean = false)

Properties

button

val button: MouseButton

dragDisplacement

val dragDisplacement: Vector2

modifiers

val modifiers: Set<KeyboardModifier>

position

val position: Vector2

propagationCancelled

var propagationCancelled: Boolean

rotation

val rotation: Vector2

type

val type: MouseEventType

Functions

cancelPropagation

fun cancelPropagation(): Unit