1 /** \file joy-win32.h 2 * \brief Joystick support for Windows - header 3 * 4 * \author Ettore Perazzoli <ettore@comm2000.it> 5 */ 6 7 /* 8 * This file is part of VICE, the Versatile Commodore Emulator. 9 * See README for copyright notice. 10 * 11 * This program is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 2 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 24 * 02111-1307 USA. 25 * 26 */ 27 28 #ifndef VICE_JOY_WIN32_H 29 #define VICE_JOY_WIN32_H 30 31 typedef int joystick_device_t; 32 33 /* standard devices */ 34 #define JOYDEV_NONE 0 35 #define JOYDEV_NUMPAD 1 36 #define JOYDEV_KEYSET1 2 37 #define JOYDEV_KEYSET2 3 38 /* extra devices */ 39 #define JOYDEV_HW1 4 40 #define JOYDEV_HW2 5 41 42 int joystick_close(void); 43 void joystick_update(void); 44 45 int joystick_uses_direct_input(void); 46 47 void joystick_ui_reset_device_list(void); 48 const char *joystick_ui_get_next_device_name(int *id); 49 50 #endif 51