pl.wendigo.chrome.api.input / EmulateTouchFromMouseEventRequest

EmulateTouchFromMouseEventRequest

data class EmulateTouchFromMouseEventRequest (source)

Represents request frame that can be used with Input#emulateTouchFromMouseEvent operation call.

Emulates touch event from the mouse event parameters.

Link
Input#emulateTouchFromMouseEvent method documentation.

See Also

InputOperations.emulateTouchFromMouseEvent

Constructors

<init>

EmulateTouchFromMouseEventRequest(type: String, x: Int, y: Int, button: String, timestamp: TimeSinceEpoch? = null, deltaX: Double? = null, deltaY: Double? = null, modifiers: Int? = null, clickCount: Int? = null)

Represents request frame that can be used with Input#emulateTouchFromMouseEvent operation call.

Properties

button

val button: String

Mouse button.

clickCount

val clickCount: Int?

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

deltaX

val deltaX: Double?

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

deltaY

val deltaY: Double?

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

modifiers

val modifiers: Int?

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

timestamp

val timestamp: TimeSinceEpoch?

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

type

val type: String

Type of the mouse event.

x

val x: Int

X coordinate of the mouse pointer in DIP.

y

val y: Int

Y coordinate of the mouse pointer in DIP.