/*
* This file is auto - generated . Modifications will be lost .
*
* See https : //android.googlesource.com/platform/bionic/+/master/libc/kernel/
* for more information .
*/
#ifndef _UAPI_LINUX_JOYSTICK_H
#define _UAPI_LINUX_JOYSTICK_H
#include <linux/types.h>
#include <linux/input.h>
#define JS_VERSION 0 x020100
#define JS_EVENT_BUTTON 0 x01
#define JS_EVENT_AXIS 0 x02
#define JS_EVENT_INIT 0 x80
struct js_event {
__u32 time;
__s16 value;
__u8 type;
__u8 number;
};
#define JSIOCGVERSION _IOR('j' , 0 x01, __u32)
#define JSIOCGAXES _IOR('j' , 0 x11, __u8)
#define JSIOCGBUTTONS _IOR('j' , 0 x12, __u8)
#define JSIOCGNAME(len) _IOC(_IOC_READ, 'j' , 0 x13, len)
#define JSIOCSCORR _IOW('j' , 0 x21, struct js_corr)
#define JSIOCGCORR _IOR('j' , 0 x22, struct js_corr)
#define JSIOCSAXMAP _IOW('j' , 0 x31, __u8[ABS_CNT])
#define JSIOCGAXMAP _IOR('j' , 0 x32, __u8[ABS_CNT])
#define JSIOCSBTNMAP _IOW('j' , 0 x33, __u16[KEY_MAX - BTN_MISC + 1 ])
#define JSIOCGBTNMAP _IOR('j' , 0 x34, __u16[KEY_MAX - BTN_MISC + 1 ])
#define JS_CORR_NONE 0 x00
#define JS_CORR_BROKEN 0 x01
struct js_corr {
__s32 coef[8 ];
__s16 prec;
__u16 type;
};
#define JS_RETURN sizeof (struct JS_DATA_TYPE)
#define JS_TRUE 1
#define JS_FALSE 0
#define JS_X_0 0 x01
#define JS_Y_0 0 x02
#define JS_X_1 0 x04
#define JS_Y_1 0 x08
#define JS_MAX 2
#define JS_DEF_TIMEOUT 0 x1300
#define JS_DEF_CORR 0
#define JS_DEF_TIMELIMIT 10 L
#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
struct JS_DATA_TYPE {
__s32 buttons;
__s32 x;
__s32 y;
};
struct JS_DATA_SAVE_TYPE_32 {
__s32 JS_TIMEOUT;
__s32 BUSY;
__s32 JS_EXPIRETIME;
__s32 JS_TIMELIMIT;
struct JS_DATA_TYPE JS_SAVE;
struct JS_DATA_TYPE JS_CORR;
};
struct JS_DATA_SAVE_TYPE_64 {
__s32 JS_TIMEOUT;
__s32 BUSY;
__s64 JS_EXPIRETIME;
__s64 JS_TIMELIMIT;
struct JS_DATA_TYPE JS_SAVE;
struct JS_DATA_TYPE JS_CORR;
};
#endif
Messung V0.5 in Prozent C=96 H=92 G=93
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-28)
¤
*© Formatika GbR, Deutschland