Keyboard, Mouse, and Touchscreen operations.
Keyboard, Mouse, and Touchscreen operations.
(key-down keyboard key)Dispatches a keydown event.
Params:
keyboard - Keyboard instance.
key - String. Key name.
Dispatches a keydown event. Params: `keyboard` - Keyboard instance. `key` - String. Key name.
(key-insert-text keyboard text)Inserts text without key events.
Params:
keyboard - Keyboard instance.
text - String. Text to insert.
Inserts text without key events. Params: `keyboard` - Keyboard instance. `text` - String. Text to insert.
(key-press keyboard key)(key-press keyboard key press-opts)Presses a key on the keyboard.
Params:
keyboard - Keyboard instance.
key - String. Key to press (e.g. "Enter", "Control+a").
opts - Map, optional. {:delay ms}.
Returns: nil or anomaly map.
Presses a key on the keyboard.
Params:
`keyboard` - Keyboard instance.
`key` - String. Key to press (e.g. "Enter", "Control+a").
`opts` - Map, optional. {:delay ms}.
Returns:
nil or anomaly map.(key-type keyboard text)(key-type keyboard text type-opts)Types text character by character.
Params:
keyboard - Keyboard instance.
text - String. Text to type.
opts - Map, optional. {:delay ms}.
Returns: nil or anomaly map.
Types text character by character.
Params:
`keyboard` - Keyboard instance.
`text` - String. Text to type.
`opts` - Map, optional. {:delay ms}.
Returns:
nil or anomaly map.(key-up keyboard key)Dispatches a keyup event.
Params:
keyboard - Keyboard instance.
key - String. Key name.
Dispatches a keyup event. Params: `keyboard` - Keyboard instance. `key` - String. Key name.
(mouse-click mouse x y)(mouse-click mouse x y click-opts)Clicks at the given coordinates.
Params:
mouse - Mouse instance.
x - Double. X coordinate.
y - Double. Y coordinate.
opts - Map, optional. Click options.
Returns: nil or anomaly map.
Clicks at the given coordinates. Params: `mouse` - Mouse instance. `x` - Double. X coordinate. `y` - Double. Y coordinate. `opts` - Map, optional. Click options. Returns: nil or anomaly map.
(mouse-dblclick mouse x y)(mouse-dblclick mouse x y dblclick-opts)Double-clicks at the given coordinates.
Params:
mouse - Mouse instance.
x - Double. X coordinate.
y - Double. Y coordinate.
opts - Map, optional.
Returns: nil or anomaly map.
Double-clicks at the given coordinates. Params: `mouse` - Mouse instance. `x` - Double. X coordinate. `y` - Double. Y coordinate. `opts` - Map, optional. Returns: nil or anomaly map.
(mouse-down mouse)Dispatches a mousedown event.
Params:
mouse - Mouse instance.
Returns: nil or anomaly map.
Dispatches a mousedown event. Params: `mouse` - Mouse instance. Returns: nil or anomaly map.
(mouse-move mouse x y)(mouse-move mouse x y move-opts)Moves the mouse to the given coordinates.
Params:
mouse - Mouse instance.
x - Double. X coordinate.
y - Double. Y coordinate.
opts - Map, optional. {:steps n}.
Returns: nil or anomaly map.
Moves the mouse to the given coordinates.
Params:
`mouse` - Mouse instance.
`x` - Double. X coordinate.
`y` - Double. Y coordinate.
`opts` - Map, optional. {:steps n}.
Returns:
nil or anomaly map.(mouse-up mouse)Dispatches a mouseup event.
Params:
mouse - Mouse instance.
Returns: nil or anomaly map.
Dispatches a mouseup event. Params: `mouse` - Mouse instance. Returns: nil or anomaly map.
(mouse-wheel mouse delta-x delta-y)Dispatches a wheel event.
Params:
mouse - Mouse instance.
delta-x - Double. Horizontal scroll amount.
delta-y - Double. Vertical scroll amount.
Returns: nil or anomaly map.
Dispatches a wheel event. Params: `mouse` - Mouse instance. `delta-x` - Double. Horizontal scroll amount. `delta-y` - Double. Vertical scroll amount. Returns: nil or anomaly map.
(touchscreen-tap ts x y)Taps at the given coordinates.
Params:
ts - Touchscreen instance.
x - Double. X coordinate.
y - Double. Y coordinate.
Returns: nil or anomaly map.
Taps at the given coordinates. Params: `ts` - Touchscreen instance. `x` - Double. X coordinate. `y` - Double. Y coordinate. Returns: nil or anomaly map.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |