input.h (744B)
1 /* Copyright (c), Niclas Meyer <niclas@countingsort.com> 2 * 3 * This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 5 * You can obtain one at https://mozilla.org/MPL/2.0/. 6 */ 7 8 #ifndef KIWMI_INPUT_INPUT_H 9 #define KIWMI_INPUT_INPUT_H 10 11 #include <wayland-server.h> 12 13 struct kiwmi_input { 14 struct wl_list keyboards; // struct kiwmi_keyboard::link 15 struct wl_listener new_input; 16 struct kiwmi_cursor *cursor; 17 struct kiwmi_seat *seat; 18 int touchpads; 19 20 struct { 21 struct wl_signal keyboard_new; 22 } events; 23 }; 24 25 bool input_init(struct kiwmi_input *input); 26 void input_fini(struct kiwmi_input *input); 27 28 #endif /* KIWMI_INPUT_INPUT_H */