Mercurial > remote-gamepad-server
comparison uinput.h @ 0:e70ea46d6073
Initial import from http://wouhanegaine.free.fr/dev/DSPad02b_neo07.zip
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 22 Feb 2015 01:38:06 +0100 |
parents | |
children | f362b20de51e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e70ea46d6073 |
---|---|
1 #ifndef UINPUT_H | |
2 #define UINPUT_H | |
3 | |
4 | |
5 #include <linux/input.h> | |
6 #include <linux/uinput.h> | |
7 | |
8 #define DS_MIN_X 0 | |
9 #define DS_MAX_X 255 | |
10 #define DS_MIN_Y 0 | |
11 #define DS_MAX_Y 191 | |
12 | |
13 | |
14 /* | |
15 Create a new uinput device | |
16 Returns: device descriptor | |
17 */ | |
18 extern int init_uinput_device(void); | |
19 | |
20 | |
21 /* | |
22 Send an event into the uinput device | |
23 Returns: TRUE, FALSE | |
24 */ | |
25 extern int do_uinput(int fd, unsigned short key, int pressed, unsigned short event_type); | |
26 | |
27 | |
28 /* | |
29 Synchonize events | |
30 */ | |
31 extern void flush_uinput(int fd); | |
32 | |
33 #endif /* UINPUT_H */ |