Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/input.h>
Go to the source code of this file.
Data Structures | |
struct | js_event |
struct | js_corr |
struct | JS_DATA_TYPE |
struct | JS_DATA_SAVE_TYPE_32 |
struct | JS_DATA_SAVE_TYPE_64 |
Macros | |
#define | JS_VERSION 0x020100 |
#define | JS_EVENT_BUTTON 0x01 /* button pressed/released */ |
#define | JS_EVENT_AXIS 0x02 /* joystick moved */ |
#define | JS_EVENT_INIT 0x80 /* initial state of device */ |
#define | JSIOCGVERSION _IOR('j', 0x01, __u32) /* get driver version */ |
#define | JSIOCGAXES _IOR('j', 0x11, __u8) /* get number of axes */ |
#define | JSIOCGBUTTONS _IOR('j', 0x12, __u8) /* get number of buttons */ |
#define | JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) /* get identifier string */ |
#define | JSIOCSCORR _IOW('j', 0x21, struct js_corr) /* set correction values */ |
#define | JSIOCGCORR _IOR('j', 0x22, struct js_corr) /* get correction values */ |
#define | JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT]) /* set axis mapping */ |
#define | JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT]) /* get axis mapping */ |
#define | JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1]) /* set button mapping */ |
#define | JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1]) /* get button mapping */ |
#define | JS_CORR_NONE 0x00 /* returns raw values */ |
#define | JS_CORR_BROKEN 0x01 /* broken line */ |
#define | JS_RETURN sizeof(struct JS_DATA_TYPE) |
#define | JS_TRUE 1 |
#define | JS_FALSE 0 |
#define | JS_X_0 0x01 |
#define | JS_Y_0 0x02 |
#define | JS_X_1 0x04 |
#define | JS_Y_1 0x08 |
#define | JS_MAX 2 |
#define | JS_DEF_TIMEOUT 0x1300 |
#define | JS_DEF_CORR 0 |
#define | JS_DEF_TIMELIMIT 10L |
#define | JS_SET_CAL 1 |
#define | JS_GET_CAL 2 |
#define | JS_SET_TIMEOUT 3 |
#define | JS_GET_TIMEOUT 4 |
#define | JS_SET_TIMELIMIT 5 |
#define | JS_GET_TIMELIMIT 6 |
#define | JS_GET_ALL 7 |
#define | JS_SET_ALL 8 |
#define JS_CORR_BROKEN 0x01 /* broken line */ |
Definition at line 77 of file joystick.h.
#define JS_CORR_NONE 0x00 /* returns raw values */ |
Definition at line 76 of file joystick.h.
#define JS_DEF_CORR 0 |
Definition at line 99 of file joystick.h.
#define JS_DEF_TIMELIMIT 10L |
Definition at line 100 of file joystick.h.
#define JS_DEF_TIMEOUT 0x1300 |
Definition at line 98 of file joystick.h.
#define JS_EVENT_AXIS 0x02 /* joystick moved */ |
Definition at line 44 of file joystick.h.
#define JS_EVENT_BUTTON 0x01 /* button pressed/released */ |
Definition at line 43 of file joystick.h.
#define JS_EVENT_INIT 0x80 /* initial state of device */ |
Definition at line 45 of file joystick.h.
#define JS_FALSE 0 |
Definition at line 91 of file joystick.h.
#define JS_GET_ALL 7 |
Definition at line 108 of file joystick.h.
#define JS_GET_CAL 2 |
Definition at line 103 of file joystick.h.
#define JS_GET_TIMELIMIT 6 |
Definition at line 107 of file joystick.h.
#define JS_GET_TIMEOUT 4 |
Definition at line 105 of file joystick.h.
#define JS_MAX 2 |
Definition at line 96 of file joystick.h.
#define JS_RETURN sizeof(struct JS_DATA_TYPE) |
Definition at line 89 of file joystick.h.
#define JS_SET_ALL 8 |
Definition at line 109 of file joystick.h.
#define JS_SET_CAL 1 |
Definition at line 102 of file joystick.h.
#define JS_SET_TIMELIMIT 5 |
Definition at line 106 of file joystick.h.
#define JS_SET_TIMEOUT 3 |
Definition at line 104 of file joystick.h.
#define JS_TRUE 1 |
Definition at line 90 of file joystick.h.
#define JS_VERSION 0x020100 |
Definition at line 37 of file joystick.h.
#define JS_X_0 0x01 |
Definition at line 92 of file joystick.h.
#define JS_X_1 0x04 |
Definition at line 94 of file joystick.h.
#define JS_Y_0 0x02 |
Definition at line 93 of file joystick.h.
#define JS_Y_1 0x08 |
Definition at line 95 of file joystick.h.
Definition at line 60 of file joystick.h.
Definition at line 68 of file joystick.h.
Definition at line 70 of file joystick.h.
Definition at line 61 of file joystick.h.
Definition at line 65 of file joystick.h.
Definition at line 62 of file joystick.h.
Definition at line 58 of file joystick.h.
Definition at line 67 of file joystick.h.
Definition at line 69 of file joystick.h.
Definition at line 64 of file joystick.h.