00001 /* RageInput: Starts up InputHandlers, which generate InputEvents. */ 00002 00003 #ifndef RAGEINPUT_H 00004 #define RAGEINPUT_H 00005 00006 #include "RageInputDevice.h" 00007 00008 class InputHandler; 00009 class RageInput 00010 { 00011 vector<InputHandler *> Devices; 00012 00013 public: 00014 RageInput( CString drivers ); 00015 ~RageInput(); 00016 00017 void Update( float fDeltaTime ); 00018 void GetDevicesAndDescriptions(vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut); 00019 void WindowReset(); 00020 }; 00021 00022 extern RageInput* INPUTMAN; // global and accessable from anywhere in our program 00023 00024 #endif 00025 00026 /* 00027 * Copyright (c) 2001-2004 Chris Danford, Glenn Maynard 00028 * All rights reserved. 00029 * 00030 * Permission is hereby granted, free of charge, to any person obtaining a 00031 * copy of this software and associated documentation files (the 00032 * "Software"), to deal in the Software without restriction, including 00033 * without limitation the rights to use, copy, modify, merge, publish, 00034 * distribute, and/or sell copies of the Software, and to permit persons to 00035 * whom the Software is furnished to do so, provided that the above 00036 * copyright notice(s) and this permission notice appear in all copies of 00037 * the Software and that both the above copyright notice(s) and this 00038 * permission notice appear in supporting documentation. 00039 * 00040 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00041 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00042 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00043 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00044 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00045 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00046 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00047 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00048 * PERFORMANCE OF THIS SOFTWARE. 00049 */