E:/Download/ois-1.0RC1/includes/win32/Win32Prereqs.h

Go to the documentation of this file.
00001 /*
00002 The zlib/libpng License
00003 
00004 Copyright (c) 2006 Phillip Castaneda (pjcast -- www.wreckedgames.com)
00005 
00006 This software is provided 'as-is', without any express or implied warranty. In no event will
00007 the authors be held liable for any damages arising from the use of this software.
00008 
00009 Permission is granted to anyone to use this software for any purpose, including commercial 
00010 applications, and to alter it and redistribute it freely, subject to the following
00011 restrictions:
00012 
00013     1. The origin of this software must not be misrepresented; you must not claim that 
00014                 you wrote the original software. If you use this software in a product, 
00015                 an acknowledgment in the product documentation would be appreciated but is 
00016                 not required.
00017 
00018     2. Altered source versions must be plainly marked as such, and must not be 
00019                 misrepresented as being the original software.
00020 
00021     3. This notice may not be removed or altered from any source distribution.
00022 */
00023 #ifndef _WIN32_INPUTSYSTEM_PREREQS_H
00024 #define _WIN32_INPUTSYSTEM_PREREQS_H
00025 
00026 //Some WIndows Defines
00027 #define WIN32_LEAN_AND_MEAN
00028 //Using DirectInput8
00029 #define DIRECTINPUT_VERSION 0x0800
00030 
00031 #include <windows.h>
00032 #include <dinput.h>
00033 
00035 #define KEYBOARD_DX_BUFFERSIZE 17
00036 #define MOUSE_DX_BUFFERSIZE 64
00037 #define JOYSTICK_DX_BUFFERSIZE 124
00038 
00039 #if defined(OIS_MINGW_COMPILER)
00040 #       undef FIELD_OFFSET
00041 #       define FIELD_OFFSET offsetof
00042 #endif
00043 
00044 namespace OIS
00045 {
00046         class Win32InputManager;
00047         class Win32Keyboard;
00048         class Win32JoyStick;
00049         class Win32Mouse;
00050 
00051         class Win32ForceFeedback;
00052 
00053         struct JoyStickInfo
00054         {
00055                 int devId;
00056                 GUID deviceID;
00057                 std::string vendor;
00058         };
00059 
00060         typedef std::vector< JoyStickInfo > JoyStickInfoList;
00061 }
00062 
00063 #endif //_WIN32_INPUTSYSTEM_PREREQS_H

Generated on Sat Dec 1 20:13:51 2007 for OIS by  doxygen 1.5.4