Liking cljdoc? Tell your friends :D

com.blockether.spel.input

Keyboard, Mouse, and Touchscreen operations.

Keyboard, Mouse, and Touchscreen operations.
raw docstring

key-downclj

(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.
sourceraw docstring

key-insert-textclj

(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.
sourceraw docstring

key-pressclj

(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.
sourceraw docstring

key-typeclj

(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.
sourceraw docstring

key-upclj

(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.
sourceraw docstring

mouse-clickclj

(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.
sourceraw docstring

mouse-dblclickclj

(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.
sourceraw docstring

mouse-downclj

(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.
sourceraw docstring

mouse-moveclj

(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.
sourceraw docstring

mouse-upclj

(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.
sourceraw docstring

mouse-wheelclj

(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.
sourceraw docstring

touchscreen-tapclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close