BasicPointerEvent¶
class BasicPointerEvent(
type: PointerEventType,
mouseX: Double,
mouseY: Double,
button: Int = MouseButton.NONE
) : PointerEvent
A basic pointer event carrying position, type and, for a press or release, the MouseButton it came from.
Constructors¶
BasicPointerEvent¶
constructor(
type: PointerEventType,
mouseX: Double,
mouseY: Double,
button: Int = MouseButton.NONE
)
Properties¶
button¶
mouseX¶
mouseY¶
type¶
val type: PointerEventType
Functions¶
consume¶
Marks this event as consumed, stopping further propagation.
Parameters
- bypassSuperCall: When
true, the corresponding screen method will returntrueinstead of delegating to thesuperimplementation. Use this when the UI has fully handled a keyboard or mouse event and the vanilla logic should be suppressed.