-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgkos.h
More file actions
32 lines (24 loc) · 744 Bytes
/
gkos.h
File metadata and controls
32 lines (24 loc) · 744 Bytes
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
30
31
32
#include <linux/input.h>
#include <stdint.h>
#include <stdbool.h>
#ifndef GKOS_H
#define GKOS_H
#define GKOS_A 0x01;
#define GKOS_B 0x02;
#define GKOS_C 0x04;
#define GKOS_D 0x08;
#define GKOS_E 0x10;
#define GKOS_F 0x20;
bool gkos_init(void);
bool gkos_handle_keys(char keymap);
/** The following need to be defined on a per-platform basis (see
* main-linux.c for an example)
*
* The keycode will be a keycode from linux/input.h, so some may need
* to be translated to work on the platform as expected
*/
bool gkos_send_keydown(uint16_t keycode);
bool gkos_send_keyup(uint16_t keycode);
bool gkos_move_mouse();
//int suinput_move_pointer(int uinput_fd, int32_t x, int32_t y);
#endif /* GKOS_H */