aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/wlr/types.h b/include/wlr/types.h
index 2ca73cc2..1d2abab5 100644
--- a/include/wlr/types.h
+++ b/include/wlr/types.h
@@ -53,18 +53,28 @@ void wlr_output_destroy(struct wlr_output *output);
void wlr_output_effective_resolution(struct wlr_output *output,
int *width, int *height);
+enum WLR_KEYBOARD_LED {
+ WLR_LED_NUM_LOCK = 1,
+ WLR_LED_CAPS_LOCK = 2,
+ WLR_LED_SCROLL_LOCK = 4,
+ WLR_LED_LAST
+};
+
struct wlr_keyboard_state;
struct wlr_keyboard_impl;
struct wlr_keyboard {
struct wlr_keyboard_state *state;
struct wlr_keyboard_impl *impl;
+ uint32_t leds;
struct {
struct wl_signal key;
} events;
};
+void wlr_keyboard_led_update(struct wlr_keyboard *keyboard, uint32_t leds);
+
enum wlr_key_state {
WLR_KEY_RELEASED,
WLR_KEY_PRESSED,