Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: joystick.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright (C) 1996-2000 Vojtech Pavlik
[2] Fix | Delete
*
[3] Fix | Delete
* Sponsored by SuSE
[4] Fix | Delete
*/
[5] Fix | Delete
/*
[6] Fix | Delete
* This program is free software; you can redistribute it and/or modify
[7] Fix | Delete
* it under the terms of the GNU General Public License as published by
[8] Fix | Delete
* the Free Software Foundation; either version 2 of the License, or
[9] Fix | Delete
* (at your option) any later version.
[10] Fix | Delete
*
[11] Fix | Delete
* This program is distributed in the hope that it will be useful,
[12] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[13] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[14] Fix | Delete
* GNU General Public License for more details.
[15] Fix | Delete
*
[16] Fix | Delete
* You should have received a copy of the GNU General Public License
[17] Fix | Delete
* along with this program; if not, write to the Free Software
[18] Fix | Delete
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
[19] Fix | Delete
*/
[20] Fix | Delete
#ifndef _LINUX_JOYSTICK_H
[21] Fix | Delete
#define _LINUX_JOYSTICK_H
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
[25] Fix | Delete
#include <linux/types.h>
[26] Fix | Delete
#include <linux/input.h>
[27] Fix | Delete
[28] Fix | Delete
/*
[29] Fix | Delete
* Version
[30] Fix | Delete
*/
[31] Fix | Delete
[32] Fix | Delete
#define JS_VERSION 0x020100
[33] Fix | Delete
[34] Fix | Delete
/*
[35] Fix | Delete
* Types and constants for reading from /dev/js
[36] Fix | Delete
*/
[37] Fix | Delete
[38] Fix | Delete
#define JS_EVENT_BUTTON 0x01 /* button pressed/released */
[39] Fix | Delete
#define JS_EVENT_AXIS 0x02 /* joystick moved */
[40] Fix | Delete
#define JS_EVENT_INIT 0x80 /* initial state of device */
[41] Fix | Delete
[42] Fix | Delete
struct js_event {
[43] Fix | Delete
__u32 time; /* event timestamp in milliseconds */
[44] Fix | Delete
__s16 value; /* value */
[45] Fix | Delete
__u8 type; /* event type */
[46] Fix | Delete
__u8 number; /* axis/button number */
[47] Fix | Delete
};
[48] Fix | Delete
[49] Fix | Delete
/*
[50] Fix | Delete
* IOCTL commands for joystick driver
[51] Fix | Delete
*/
[52] Fix | Delete
[53] Fix | Delete
#define JSIOCGVERSION _IOR('j', 0x01, __u32) /* get driver version */
[54] Fix | Delete
[55] Fix | Delete
#define JSIOCGAXES _IOR('j', 0x11, __u8) /* get number of axes */
[56] Fix | Delete
#define JSIOCGBUTTONS _IOR('j', 0x12, __u8) /* get number of buttons */
[57] Fix | Delete
#define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) /* get identifier string */
[58] Fix | Delete
[59] Fix | Delete
#define JSIOCSCORR _IOW('j', 0x21, struct js_corr) /* set correction values */
[60] Fix | Delete
#define JSIOCGCORR _IOR('j', 0x22, struct js_corr) /* get correction values */
[61] Fix | Delete
[62] Fix | Delete
#define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT]) /* set axis mapping */
[63] Fix | Delete
#define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT]) /* get axis mapping */
[64] Fix | Delete
#define JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1]) /* set button mapping */
[65] Fix | Delete
#define JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1]) /* get button mapping */
[66] Fix | Delete
[67] Fix | Delete
/*
[68] Fix | Delete
* Types and constants for get/set correction
[69] Fix | Delete
*/
[70] Fix | Delete
[71] Fix | Delete
#define JS_CORR_NONE 0x00 /* returns raw values */
[72] Fix | Delete
#define JS_CORR_BROKEN 0x01 /* broken line */
[73] Fix | Delete
[74] Fix | Delete
struct js_corr {
[75] Fix | Delete
__s32 coef[8];
[76] Fix | Delete
__s16 prec;
[77] Fix | Delete
__u16 type;
[78] Fix | Delete
};
[79] Fix | Delete
[80] Fix | Delete
/*
[81] Fix | Delete
* v0.x compatibility definitions
[82] Fix | Delete
*/
[83] Fix | Delete
[84] Fix | Delete
#define JS_RETURN sizeof(struct JS_DATA_TYPE)
[85] Fix | Delete
#define JS_TRUE 1
[86] Fix | Delete
#define JS_FALSE 0
[87] Fix | Delete
#define JS_X_0 0x01
[88] Fix | Delete
#define JS_Y_0 0x02
[89] Fix | Delete
#define JS_X_1 0x04
[90] Fix | Delete
#define JS_Y_1 0x08
[91] Fix | Delete
#define JS_MAX 2
[92] Fix | Delete
[93] Fix | Delete
#define JS_DEF_TIMEOUT 0x1300
[94] Fix | Delete
#define JS_DEF_CORR 0
[95] Fix | Delete
#define JS_DEF_TIMELIMIT 10L
[96] Fix | Delete
[97] Fix | Delete
#define JS_SET_CAL 1
[98] Fix | Delete
#define JS_GET_CAL 2
[99] Fix | Delete
#define JS_SET_TIMEOUT 3
[100] Fix | Delete
#define JS_GET_TIMEOUT 4
[101] Fix | Delete
#define JS_SET_TIMELIMIT 5
[102] Fix | Delete
#define JS_GET_TIMELIMIT 6
[103] Fix | Delete
#define JS_GET_ALL 7
[104] Fix | Delete
#define JS_SET_ALL 8
[105] Fix | Delete
[106] Fix | Delete
struct JS_DATA_TYPE {
[107] Fix | Delete
__s32 buttons;
[108] Fix | Delete
__s32 x;
[109] Fix | Delete
__s32 y;
[110] Fix | Delete
};
[111] Fix | Delete
[112] Fix | Delete
struct JS_DATA_SAVE_TYPE_32 {
[113] Fix | Delete
__s32 JS_TIMEOUT;
[114] Fix | Delete
__s32 BUSY;
[115] Fix | Delete
__s32 JS_EXPIRETIME;
[116] Fix | Delete
__s32 JS_TIMELIMIT;
[117] Fix | Delete
struct JS_DATA_TYPE JS_SAVE;
[118] Fix | Delete
struct JS_DATA_TYPE JS_CORR;
[119] Fix | Delete
};
[120] Fix | Delete
[121] Fix | Delete
struct JS_DATA_SAVE_TYPE_64 {
[122] Fix | Delete
__s32 JS_TIMEOUT;
[123] Fix | Delete
__s32 BUSY;
[124] Fix | Delete
__s64 JS_EXPIRETIME;
[125] Fix | Delete
__s64 JS_TIMELIMIT;
[126] Fix | Delete
struct JS_DATA_TYPE JS_SAVE;
[127] Fix | Delete
struct JS_DATA_TYPE JS_CORR;
[128] Fix | Delete
};
[129] Fix | Delete
[130] Fix | Delete
[131] Fix | Delete
#endif /* _LINUX_JOYSTICK_H */
[132] Fix | Delete
[133] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function