mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-15 06:59:49 -05:00
Pass input device and time in key_handler callback
Move the modifiers to a input device getter function.
This commit is contained in:
parent
5029a13283
commit
67cac8a565
5 changed files with 28 additions and 10 deletions
|
|
@ -110,8 +110,8 @@ redraw_handler(struct window *window, void *data)
|
|||
}
|
||||
|
||||
static void
|
||||
key_handler(struct window *window, uint32_t key, uint32_t unicode,
|
||||
uint32_t state, uint32_t modifiers, void *data)
|
||||
key_handler(struct window *window, struct input *input, uint32_t time,
|
||||
uint32_t key, uint32_t unicode, uint32_t state, void *data)
|
||||
{
|
||||
struct view *view = data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue