openrndr / org.openrndr / Mouse

Mouse

class Mouse (source)

Constructors

<init>

Mouse(application: () -> Application)

Properties

application

val application: () -> Application

buttonDown

val buttonDown: Event<MouseEvent>

buttonUp

val buttonUp: Event<MouseEvent>

clicked

val clicked: Event<MouseEvent>

cursorVisible

var cursorVisible: Boolean

dragged

val dragged: Event<MouseEvent>

entered

val entered: Event<MouseEvent>

exited

val exited: Event<MouseEvent>

moved

val moved: Event<MouseEvent>

position

The current mouse position

var position: Vector2

pressedButtons

var pressedButtons: MutableSet<MouseButton>

scrolled

val scrolled: Event<MouseEvent>