EmulateTouchFromMouseEventParameter

@Serializable
data class EmulateTouchFromMouseEventParameter(val type: String, val x: Int, val y: Int, val button: Input.MouseButton, val timestamp: Double? = null, val deltaX: Double? = null, val deltaY: Double? = null, val modifiers: Int? = null, val clickCount: Int? = null)

Constructors

Link copied to clipboard
constructor(type: String, x: Int, y: Int, button: Input.MouseButton, timestamp: Double? = null, deltaX: Double? = null, deltaY: Double? = null, modifiers: Int? = null, clickCount: Int? = null)

Properties

Link copied to clipboard

Mouse button. Only "none", "left", "right" are supported.

Link copied to clipboard
val clickCount: Int? = null

Number of times the mouse button was clicked (default: 0).

Link copied to clipboard
val deltaX: Double? = null

X delta in DIP for mouse wheel event (default: 0).

Link copied to clipboard
val deltaY: Double? = null

Y delta in DIP for mouse wheel event (default: 0).

Link copied to clipboard
val modifiers: Int? = null

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

Link copied to clipboard
val timestamp: Double? = null

Time at which the event occurred (default: current time).

Link copied to clipboard

Type of the mouse event.

Link copied to clipboard
val x: Int

X coordinate of the mouse pointer in DIP.

Link copied to clipboard
val y: Int

Y coordinate of the mouse pointer in DIP.