EmulateTouchFromMouseEventRequest

@Serializable
data class EmulateTouchFromMouseEventRequest(val type: MouseEventType, val x: Int, val y: Int, val button: MouseButton, val timestamp: TimeSinceEpoch? = null, val deltaX: Double? = null, val deltaY: Double? = null, val modifiers: Int? = null, val clickCount: Int? = null)(source)

Request object containing input parameters for the InputDomain.emulateTouchFromMouseEvent command.

Constructors

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

Types

Link copied to clipboard
class Builder(val type: MouseEventType, val x: Int, val y: Int, val button: MouseButton)

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

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.