MouseEvent

class MouseEvent(    val button: MouseButtonType,     val posX: Number,     val posY: Number) : InputEvent

Event that gets raised for mouse inputs.

Constructors

Link copied to clipboard
fun MouseEvent(    button: MouseButtonType,     posX: Number,     posY: Number)

Creates a MouseEvent with given button.

Properties

Link copied to clipboard
val button: MouseButtonType

Corresponding mouse button enum value.

Link copied to clipboard
val posX: Number

The X-coordinate of the mouse event position.

Link copied to clipboard
val posY: Number

The Y-coordinate of the mouse event position.