Go to the documentation of this file.
25 #ifndef _UAPI_LINUX_JOYSTICK_H
26 #define _UAPI_LINUX_JOYSTICK_H
30 #include <linux/types.h>
31 #include <linux/input.h>
37 #define JS_VERSION 0x020100
43 #define JS_EVENT_BUTTON 0x01
44 #define JS_EVENT_AXIS 0x02
45 #define JS_EVENT_INIT 0x80
58 #define JSIOCGVERSION _IOR('j', 0x01, __u32)
60 #define JSIOCGAXES _IOR('j', 0x11, __u8)
61 #define JSIOCGBUTTONS _IOR('j', 0x12, __u8)
62 #define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len)
64 #define JSIOCSCORR _IOW('j', 0x21, struct js_corr)
65 #define JSIOCGCORR _IOR('j', 0x22, struct js_corr)
67 #define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT])
68 #define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT])
69 #define JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1])
70 #define JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1])
76 #define JS_CORR_NONE 0x00
77 #define JS_CORR_BROKEN 0x01
89 #define JS_RETURN sizeof(struct JS_DATA_TYPE)
98 #define JS_DEF_TIMEOUT 0x1300
100 #define JS_DEF_TIMELIMIT 10L
104 #define JS_SET_TIMEOUT 3
105 #define JS_GET_TIMEOUT 4
106 #define JS_SET_TIMELIMIT 5
107 #define JS_GET_TIMELIMIT 6