Subversion Repositories Projects

Rev

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
 
483 ligi 13
#include <sys/types.h>
14
#include <sys/dir.h>
15
#include <sys/param.h>
130 ligi 16
 
483 ligi 17
#define MAX_EVDEVS 20
130 ligi 18
 
19
#define test_bit(bit, array)    (array[bit/8] & (1<<(bit%8)))
20
 
483 ligi 21
int connect_evdev();
130 ligi 22
int blink_evdev_led();
23
int init_evdevstatus_led();
24
int poll_evdev();
483 ligi 25
void collect_evdev_devices();
130 ligi 26
 
27
extern int  *evdev_rel_axis;
28
extern char *evdev_button;
29
 
30
 
483 ligi 31
 
32
typedef struct
33
{
34
  char name[255];
35
  char fname[255];
36
}  evdevs_t ;
37
 
38
evdevs_t evdevs[MAX_EVDEVS];
39
extern int evdevs_count;
40
 
41
 
42
#define FALSE 0
43
#define TRUE 1
44
 
130 ligi 45
#endif