wlroots/include/rootston/keyboard.h

34 lines
887 B
C
Raw Normal View History

2017-11-03 00:13:10 +00:00
#ifndef _ROOTSTON_KEYBOARD_H
#define _ROOTSTON_KEYBOARD_H
#include <xkbcommon/xkbcommon.h>
#include "rootston/input.h"
#define ROOTS_KEYBOARD_PRESSED_KEYSYMS_CAP 32
struct roots_keyboard {
struct roots_input *input;
2017-11-03 13:01:34 +00:00
struct roots_seat *seat;
2017-11-03 00:13:10 +00:00
struct wlr_input_device *device;
2017-11-07 20:56:11 +00:00
struct keyboard_config *config;
2017-11-03 00:13:10 +00:00
struct wl_list link;
2017-11-03 13:01:34 +00:00
struct wl_listener keyboard_key;
struct wl_listener keyboard_modifiers;
2017-11-03 00:13:10 +00:00
xkb_keysym_t pressed_keysyms[ROOTS_KEYBOARD_PRESSED_KEYSYMS_CAP];
};
2017-11-03 10:18:20 +00:00
struct roots_keyboard *roots_keyboard_create(struct wlr_input_device *device,
struct roots_input *input);
2017-11-03 13:01:34 +00:00
2017-11-08 14:04:33 +00:00
void roots_keyboard_destroy(struct roots_keyboard *keyboard);
2017-11-03 10:18:20 +00:00
void roots_keyboard_handle_key(struct roots_keyboard *keyboard,
struct wlr_event_keyboard_key *event);
2017-11-03 13:01:34 +00:00
void roots_keyboard_handle_modifiers(struct roots_keyboard *r_keyboard,
struct wlr_event_keyboard_modifiers *event);
2017-11-03 00:13:10 +00:00
#endif