Skip to content

Keyboard send_key

HASUMI Hitoshi edited this page Sep 5, 2022 · 2 revisions

Valid version

0.9.0+

Description

Keyboard#send_key will report a keycord according to the argument:

Usage

kbc.send_key :KC_A

You can pass multiple keycodes:

kbc.send_key :KC_LSFT, :KC_A

An array of Symbol can also be used:

kbc.send_key %i[KC_LSFT KC_A]

See Rotary-encoder to find an actual example.

Clone this wiki locally