1 /***************************************************************************** 2 ** $Source: /cygdrive/d/Private/_SVNROOT/bluemsx/blueMSX/Src/Input/SviJoystickDevice.h,v $ 3 ** 4 ** $Revision: 1.3 $ 5 ** 6 ** $Date: 2008-03-30 18:38:40 $ 7 ** 8 ** More info: http://www.bluemsx.com 9 ** 10 ** Copyright (C) 2003-2006 Daniel Vik 11 ** 12 ** This program is free software; you can redistribute it and/or modify 13 ** it under the terms of the GNU General Public License as published by 14 ** the Free Software Foundation; either version 2 of the License, or 15 ** (at your option) any later version. 16 ** 17 ** This program is distributed in the hope that it will be useful, 18 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 19 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 ** GNU General Public License for more details. 21 ** 22 ** You should have received a copy of the GNU General Public License 23 ** along with this program; if not, write to the Free Software 24 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 25 ** 26 ****************************************************************************** 27 */ 28 #ifndef SVI_JOYSTICK_DEVICE_H 29 #define SVI_JOYSTICK_DEVICE_H 30 31 #include "MsxTypes.h" 32 33 // Base class for SVI Joystick devices. 34 35 typedef struct { 36 UInt8 (*read)(void*); 37 UInt8 (*readTrigger)(void*); 38 void (*write)(void*, UInt8); 39 void (*destroy)(void*); 40 void (*reset)(void*); 41 void (*saveState)(void*); 42 void (*loadState)(void*); 43 } SviJoystickDevice; 44 45 46 #endif 47