Add definitions for LIBINPUT_LED_COMPOSE and LIBINPUT_LED_KANA

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/990>
This commit is contained in:
Martin Rys 2024-04-25 10:38:52 +02:00 committed by Peter Hutterer
parent ed9570df60
commit 7c91e3539c
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -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)
};
/**