Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
130 | ligi | 1 | #if !defined(EVDEV_HANDLER_H) |
2 | #define EVDEV_HANDLER_H |
||
3 | |||
4 | #include <stdio.h> |
||
5 | #include <sys/types.h> |
||
6 | #include <fcntl.h> |
||
7 | #include <stdlib.h> |
||
8 | #include <unistd.h>//for close() for socket |
||
9 | #include <string.h> |
||
10 | #include <linux/joystick.h> |
||
11 | #include <netinet/in.h> |
||
12 | |||
13 | |||
14 | |||
15 | #define test_bit(bit, array) (array[bit/8] & (1<<(bit%8))) |
||
16 | |||
17 | int connect_evdev(char* input_evdev_name); |
||
18 | int blink_evdev_led(); |
||
19 | int init_evdevstatus_led(); |
||
20 | int poll_evdev(); |
||
21 | |||
22 | extern int *evdev_rel_axis; |
||
23 | extern char *evdev_button; |
||
24 | |||
25 | |||
26 | #endif |