00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00040 #ifndef _USB_PRIVATE_H_
00041 #define _USB_PRIVATE_H_
00042 
00043 #include "dmxinputinit.h"
00044 #include "inputstr.h"
00045 #include <X11/Xos.h>
00046 #include <errno.h>
00047 #include <linux/input.h>
00048 #include "usb-common.h"
00049 
00050                                 
00051 
00052 #ifndef EV_MSC
00053 #define EV_MSC      0x04
00054 #endif
00055 #ifndef EV_FF
00056 #define EV_FF       0x15
00057 #endif
00058 #ifndef LED_SLEEP
00059 #define LED_SLEEP   0x05
00060 #endif
00061 #ifndef LED_SUSPEND
00062 #define LED_SUSPEND 0x06
00063 #endif
00064 #ifndef LED_MUTE
00065 #define LED_MUTE    0x07
00066 #endif
00067 #ifndef LED_MISC
00068 #define LED_MISC    0x08
00069 #endif
00070 #ifndef BTN_DEAD
00071 #define BTN_DEAD    0x12f
00072 #endif
00073 #ifndef BTN_THUMBL
00074 #define BTN_THUMBL  0x13d
00075 #endif
00076 #ifndef BTN_THUMBR
00077 #define BTN_THUMBR  0x13e
00078 #endif
00079 #ifndef MSC_SERIAL
00080 #define MSC_SERIAL  0x00
00081 #endif
00082 #ifndef MSC_MAX
00083 #define MSC_MAX     0x07
00084 #endif
00085 
00086                                 
00087 #ifndef ABS_WHEEL
00088 #define ABS_WHEEL   0x08
00089 #endif
00090 #ifndef ABS_GAS
00091 #define ABS_GAS     0x09
00092 #endif
00093 #ifndef ABS_BRAKE
00094 #define ABS_BRAKE   0x0a
00095 #endif
00096 
00097 #define NUM_STATE_ENTRIES (256/32)
00098 
00099 
00100 typedef struct _myPrivate {
00101     DeviceIntPtr   pDevice;                 
00102     int            fd;                      
00103     unsigned char  mask[EV_MAX/8 + 1];      
00104     int            numRel, numAbs, numLeds; 
00105     int            relmap[DMX_MAX_AXES];    
00106     int            absmap[DMX_MAX_AXES];    
00108     CARD32         kbdState[NUM_STATE_ENTRIES]; 
00109     DeviceIntPtr   pKeyboard;                   
00111     int            pitch;       
00112     unsigned long  duration;    
00114     
00115     DMXInputInfo   *dmxInput;   
00116 } myPrivate;
00117 #endif