mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-22 06:59:44 -05:00
wlr-keyboard: take out modifiers event struct (for now)
This commit is contained in:
parent
c680ace5e8
commit
739361aa70
9 changed files with 13 additions and 35 deletions
|
|
@ -27,7 +27,6 @@ void roots_keyboard_destroy(struct roots_keyboard *keyboard);
|
|||
void roots_keyboard_handle_key(struct roots_keyboard *keyboard,
|
||||
struct wlr_event_keyboard_key *event);
|
||||
|
||||
void roots_keyboard_handle_modifiers(struct roots_keyboard *r_keyboard,
|
||||
struct wlr_event_keyboard_modifiers *event);
|
||||
void roots_keyboard_handle_modifiers(struct roots_keyboard *r_keyboard);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ void wlr_keyboard_destroy(struct wlr_keyboard *keyboard);
|
|||
void wlr_keyboard_notify_key(struct wlr_keyboard *keyboard,
|
||||
struct wlr_event_keyboard_key *event);
|
||||
void wlr_keyboard_notify_modifiers(struct wlr_keyboard *keyboard,
|
||||
struct wlr_event_keyboard_modifiers *event);
|
||||
uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked,
|
||||
uint32_t group);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -66,23 +66,12 @@ enum wlr_key_state {
|
|||
};
|
||||
|
||||
struct wlr_event_keyboard_key {
|
||||
struct wlr_input_device *device;
|
||||
struct wlr_keyboard *keyboard;
|
||||
uint32_t time_msec;
|
||||
uint32_t keycode;
|
||||
bool update_state;
|
||||
enum wlr_key_state state;
|
||||
};
|
||||
|
||||
struct wlr_event_keyboard_modifiers {
|
||||
struct wlr_input_device *device;
|
||||
struct wlr_keyboard *keyboard;
|
||||
uint32_t mods_depressed;
|
||||
uint32_t mods_latched;
|
||||
uint32_t mods_locked;
|
||||
uint32_t group;
|
||||
};
|
||||
|
||||
void wlr_keyboard_set_keymap(struct wlr_keyboard *kb,
|
||||
struct xkb_keymap *keymap);
|
||||
void wlr_keyboard_led_update(struct wlr_keyboard *keyboard, uint32_t leds);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue