mouseClick

open suspend override fun mouseClick(x: Double, y: Double, button: Input.MouseButton, buttons: Int, modifiers: Int)

Performs a native mouse click at the specified \[x, y\] coordinates.

Parameters

x

The x coordinate.

y

The y coordinate.

button

The mouse button (LEFT, RIGHT, MIDDLE). Default is LEFT.

buttons

Which button (default 1 = left).

modifiers

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