2019-03-17 19:17:41 +00:00
|
|
|
/* Copyright (c), Charlotte Meyer <dev@buffet.sh>
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KIWMI_INPUT_INPUT_H
|
|
|
|
#define KIWMI_INPUT_INPUT_H
|
|
|
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
|
|
|
|
struct kiwmi_input {
|
|
|
|
struct wl_list keyboards; // struct kiwmi_keyboard::link
|
2022-07-14 14:15:51 +00:00
|
|
|
struct wl_list pointers; // struct kiwmi_pointer::link
|
2019-03-17 19:17:41 +00:00
|
|
|
struct wl_listener new_input;
|
2019-03-17 20:03:59 +00:00
|
|
|
struct kiwmi_cursor *cursor;
|
2020-01-18 15:14:19 +00:00
|
|
|
struct kiwmi_seat *seat;
|
2020-01-04 23:22:45 +00:00
|
|
|
|
|
|
|
struct {
|
|
|
|
struct wl_signal keyboard_new;
|
|
|
|
} events;
|
2019-03-17 19:17:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
bool input_init(struct kiwmi_input *input);
|
2020-01-15 20:52:26 +00:00
|
|
|
void input_fini(struct kiwmi_input *input);
|
2019-03-17 19:17:41 +00:00
|
|
|
|
|
|
|
#endif /* KIWMI_INPUT_INPUT_H */
|