/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Copyright (C) 1996-2000 Vojtech Pavlik * * Sponsored by SuSE */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _UAPI_LINUX_JOYSTICK_H #define _UAPI_LINUX_JOYSTICK_H #include <linux/types.h> #include <linux/input.h> /* * Version */ #define JS_VERSION … /* * Types and constants for reading from /dev/js */ #define JS_EVENT_BUTTON … #define JS_EVENT_AXIS … #define JS_EVENT_INIT … struct js_event { … }; /* * IOCTL commands for joystick driver */ #define JSIOCGVERSION … #define JSIOCGAXES … #define JSIOCGBUTTONS … #define JSIOCGNAME(len) … #define JSIOCSCORR … #define JSIOCGCORR … #define JSIOCSAXMAP … #define JSIOCGAXMAP … #define JSIOCSBTNMAP … #define JSIOCGBTNMAP … /* * Types and constants for get/set correction */ #define JS_CORR_NONE … #define JS_CORR_BROKEN … struct js_corr { … }; /* * v0.x compatibility definitions */ #define JS_RETURN … #define JS_TRUE … #define JS_FALSE … #define JS_X_0 … #define JS_Y_0 … #define JS_X_1 … #define JS_Y_1 … #define JS_MAX … #define JS_DEF_TIMEOUT … #define JS_DEF_CORR … #define JS_DEF_TIMELIMIT … #define JS_SET_CAL … #define JS_GET_CAL … #define JS_SET_TIMEOUT … #define JS_GET_TIMEOUT … #define JS_SET_TIMELIMIT … #define JS_GET_TIMELIMIT … #define JS_GET_ALL … #define JS_SET_ALL … struct JS_DATA_TYPE { … }; struct JS_DATA_SAVE_TYPE_32 { … }; struct JS_DATA_SAVE_TYPE_64 { … }; #endif /* _UAPI_LINUX_JOYSTICK_H */