blob: e8f4af8797fcf2fd3a6fd95f30207f404abb8241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <stdbool.h>
#include <inttypes.h>
#include <libudev.h>
#include <libinput.h>
#include <xkbcommon/xkbcommon.h>
#define KEY_MOD_SHIFT (1 << 0)
#define KEY_MOD_CTRL (1 << 1)
extern int libinput_devcount;
extern int libinput_deverror;
extern const struct libinput_interface libinput_if_default;
extern struct xkb_context *xkb_ctx;
extern struct xkb_keymap *xkb_map;
extern struct xkb_state *xkb_state;
extern struct xkb_rule_names xkb_layout;
void xkb_configure(void);
void xkb_init(void);
void kbd_init(bool use_libinput, bool use_logind, dev_t gfx);
int kbd_wait(int timeout);
int kbd_read(char *buf, uint32_t len,
uint32_t *keycode, uint32_t *modifier);
void kbd_suspend(void);
void kbd_resume(void);
void kbd_fini(void);
|