From: Spacy <sp...@us...> - 2006-08-24 02:08:30
|
Update of /cvsroot/vba/VisualBoyAdvance/src/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7872/src/win32 Modified Files: DirectInput.cpp Log Message: Updated Input handling from using DirectInput5 to using DirectInput8 Index: DirectInput.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/DirectInput.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** DirectInput.cpp 6 Jun 2006 21:04:21 -0000 1.7 --- DirectInput.cpp 24 Aug 2006 02:08:26 -0000 1.8 *************** *** 1,26 **** ! // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. ! // Copyright (C) 1999-2003 Forgotten ! // Copyright (C) 2004 Forgotten and the VBA development team ! // 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, or(at your option) ! // any later version. ! // ! // This program is distributed in the hope that it will be useful, [...2047 lines suppressed...] ! checkKeyboard(); } void DirectInput::activate() { ! for (int i = 0; i < numDevices; i++) { ! if (pDevices != NULL && pDevices[i].device != NULL) ! pDevices[i].device->Acquire(); ! } } void DirectInput::loadSettings() { ! winReadKeys(); } void DirectInput::saveSettings() { ! winSaveKeys(); } |