openrndr / org.openrndr / Mouse

Mouse

class Mouse (source)

Mouse events

Constructors

<init>

Mouse events

Mouse(application: () -> Application)

Properties

buttonDown

mouse button down event

val buttonDown: Event<MouseEvent>

buttonUp

mouse button up event

val buttonUp: Event<MouseEvent>

cursorVisible

specifies if cursor should be visible

var cursorVisible: Boolean

dragged

mouse dragged event

val dragged: Event<MouseEvent>

entered

mouse entered event

val entered: Event<MouseEvent>

exited

mouse exited event

val exited: Event<MouseEvent>

moved

mouse moved event

val moved: Event<MouseEvent>

position

The current mouse position

var position: Vector2

pressedButtons

var pressedButtons: MutableSet<MouseButton>

scrolled

mouse scroll wheel event

val scrolled: Event<MouseEvent>