DOSBox-X
|
00001 /* 00002 * Copyright (C) 2002-2020 The DOSBox Team 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License along 00015 * with this program; if not, write to the Free Software Foundation, Inc., 00016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef DOSBOX_JOYSTICK_H 00020 #define DOSBOX_JOYSTICK_H 00021 void JOYSTICK_Enable(Bitu which,bool enabled); 00022 00023 void JOYSTICK_Button(Bitu which,Bitu num,bool pressed); 00024 00025 void JOYSTICK_Move_X(Bitu which,float x); 00026 00027 void JOYSTICK_Move_Y(Bitu which,float y); 00028 00029 bool JOYSTICK_IsEnabled(Bitu which); 00030 00031 bool JOYSTICK_GetButton(Bitu which, Bitu num); 00032 00033 float JOYSTICK_GetMove_X(Bitu which); 00034 00035 float JOYSTICK_GetMove_Y(Bitu which); 00036 00037 enum JoystickType { 00038 JOY_NONE, 00039 JOY_AUTO, 00040 JOY_2AXIS, 00041 JOY_4AXIS, 00042 JOY_4AXIS_2, 00043 JOY_FCS, 00044 JOY_CH 00045 }; 00046 00047 extern JoystickType joytype; 00048 extern bool button_wrapping_enabled; 00049 #endif