diff options
author | Martin Rys <martin@rys.pw> | 2024-04-25 10:38:52 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2024-04-28 23:59:14 +0000 |
commit | 7c91e3539c0d86a274be2748d79627c9eab321a8 (patch) | |
tree | db8cdf7100bcf23b60b00c91dbd0e63d60ea1c23 | |
parent | ed9570df6065d2f29e0ef7946505f90167588906 (diff) |
Add definitions for LIBINPUT_LED_COMPOSE and LIBINPUT_LED_KANA
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/990>
-rw-r--r-- | src/evdev.c | 2 | ||||
-rw-r--r-- | src/libinput.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index da538df7..2a49f655 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -338,6 +338,8 @@ evdev_device_led_update(struct evdev_device *device, enum libinput_led leds) { LIBINPUT_LED_NUM_LOCK, LED_NUML }, { LIBINPUT_LED_CAPS_LOCK, LED_CAPSL }, { LIBINPUT_LED_SCROLL_LOCK, LED_SCROLLL }, + { LIBINPUT_LED_COMPOSE, LED_COMPOSE }, + { LIBINPUT_LED_KANA, LED_KANA }, }; struct input_event ev[ARRAY_LENGTH(map) + 1]; unsigned int i; diff --git a/src/libinput.h b/src/libinput.h index ebaf6384..2c86cc08 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -218,7 +218,9 @@ enum libinput_key_state { enum libinput_led { LIBINPUT_LED_NUM_LOCK = (1 << 0), LIBINPUT_LED_CAPS_LOCK = (1 << 1), - LIBINPUT_LED_SCROLL_LOCK = (1 << 2) + LIBINPUT_LED_SCROLL_LOCK = (1 << 2), + LIBINPUT_LED_COMPOSE = (1 << 3), + LIBINPUT_LED_KANA = (1 << 4) }; /** |