MouseButtonDown

class MouseButtonDown(val button: MouseButton, val x: Float, val y: Float, val clicks: Int) : PlatformEvent(source)

Reports that button was pressed with the mouse at (x, y) in window points.

clicks counts presses in quick succession: 1 for a single click, 2 for a double click, and so on. Buttons past MouseButton.X2 are not reported.

Constructors

Link copied to clipboard
constructor(button: MouseButton, x: Float, y: Float, clicks: Int)

Properties

Link copied to clipboard

The button that was pressed.

Link copied to clipboard
val clicks: Int

Number of presses in quick succession.

Link copied to clipboard
val x: Float

Horizontal position in window points.

Link copied to clipboard
val y: Float

Vertical position in window points.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String