diff options
Diffstat (limited to '9/platforms/android-21/arch-arm/usr/include/linux/joystick.h')
-rw-r--r-- | 9/platforms/android-21/arch-arm/usr/include/linux/joystick.h | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/9/platforms/android-21/arch-arm/usr/include/linux/joystick.h b/9/platforms/android-21/arch-arm/usr/include/linux/joystick.h new file mode 100644 index 0000000..a52d38b --- /dev/null +++ b/9/platforms/android-21/arch-arm/usr/include/linux/joystick.h @@ -0,0 +1,108 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI_LINUX_JOYSTICK_H +#define _UAPI_LINUX_JOYSTICK_H +#include <linux/types.h> +#include <linux/input.h> +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JS_VERSION 0x020100 +#define JS_EVENT_BUTTON 0x01 +#define JS_EVENT_AXIS 0x02 +#define JS_EVENT_INIT 0x80 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +struct js_event { + __u32 time; + __s16 value; + __u8 type; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u8 number; +}; +#define JSIOCGVERSION _IOR('j', 0x01, __u32) +#define JSIOCGAXES _IOR('j', 0x11, __u8) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JSIOCGBUTTONS _IOR('j', 0x12, __u8) +#define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) +#define JSIOCSCORR _IOW('j', 0x21, struct js_corr) +#define JSIOCGCORR _IOR('j', 0x22, struct js_corr) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT]) +#define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT]) +#define JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1]) +#define JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1]) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JS_CORR_NONE 0x00 +#define JS_CORR_BROKEN 0x01 +struct js_corr { + __s32 coef[8]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __s16 prec; + __u16 type; +}; +#define JS_RETURN sizeof(struct JS_DATA_TYPE) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JS_TRUE 1 +#define JS_FALSE 0 +#define JS_X_0 0x01 +#define JS_Y_0 0x02 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JS_X_1 0x04 +#define JS_Y_1 0x08 +#define JS_MAX 2 +#define JS_DEF_TIMEOUT 0x1300 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JS_DEF_CORR 0 +#define JS_DEF_TIMELIMIT 10L +#define JS_SET_CAL 1 +#define JS_GET_CAL 2 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JS_SET_TIMEOUT 3 +#define JS_GET_TIMEOUT 4 +#define JS_SET_TIMELIMIT 5 +#define JS_GET_TIMELIMIT 6 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define JS_GET_ALL 7 +#define JS_SET_ALL 8 +struct JS_DATA_TYPE { + __s32 buttons; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __s32 x; + __s32 y; +}; +struct JS_DATA_SAVE_TYPE_32 { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __s32 JS_TIMEOUT; + __s32 BUSY; + __s32 JS_EXPIRETIME; + __s32 JS_TIMELIMIT; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + struct JS_DATA_TYPE JS_SAVE; + struct JS_DATA_TYPE JS_CORR; +}; +struct JS_DATA_SAVE_TYPE_64 { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __s32 JS_TIMEOUT; + __s32 BUSY; + __s64 JS_EXPIRETIME; + __s64 JS_TIMELIMIT; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + struct JS_DATA_TYPE JS_SAVE; + struct JS_DATA_TYPE JS_CORR; +}; +#endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |