blob: 95fe8240799546cd6d878d1ca912ace34e104346 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <stdbool.h>
#include <linux/input.h>
#define KEY_MOD_SHIFT (1 << 0)
#define KEY_MOD_CTRL (1 << 1)
void kbd_init(bool use_libinput, bool use_grab, dev_t gfx);
int kbd_wait(int timeout);
int kbd_read(char *buf, uint32_t len,
uint32_t *keycode, uint32_t *modifier);
void kbd_fini(void);
|