Subversion Repositories Projects

Rev

Rev 130 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 130 Rev 483
Line 8... Line 8...
8
#include <unistd.h>//for close() for socket
8
#include <unistd.h>//for close() for socket
9
#include <string.h>
9
#include <string.h>
10
#include <linux/joystick.h>
10
#include <linux/joystick.h>
11
#include <netinet/in.h>
11
#include <netinet/in.h>
Line -... Line 12...
-
 
12
 
-
 
13
#include <sys/types.h>
-
 
14
#include <sys/dir.h>
Line -... Line 15...
-
 
15
#include <sys/param.h>
Line 12... Line 16...
12
 
16
 
Line 13... Line 17...
13
 
17
#define MAX_EVDEVS 20
14
 
18
 
15
#define test_bit(bit, array)    (array[bit/8] & (1<<(bit%8)))
19
#define test_bit(bit, array)    (array[bit/8] & (1<<(bit%8)))
16
 
20
 
-
 
21
int connect_evdev();
Line 17... Line 22...
17
int connect_evdev(char* input_evdev_name);
22
int blink_evdev_led();
18
int blink_evdev_led();
23
int init_evdevstatus_led();
Line -... Line 24...
-
 
24
int poll_evdev();
-
 
25
void collect_evdev_devices();
-
 
26
 
-
 
27
extern int  *evdev_rel_axis;
-
 
28
extern char *evdev_button;
-
 
29
 
-
 
30
 
-
 
31
 
-
 
32
typedef struct
-
 
33
{
-
 
34
  char name[255];
-
 
35
  char fname[255];
-
 
36
}  evdevs_t ;
-
 
37
 
19
int init_evdevstatus_led();
38
evdevs_t evdevs[MAX_EVDEVS];