00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _WIN32_INPUTSYSTEM_PREREQS_H
00024 #define _WIN32_INPUTSYSTEM_PREREQS_H
00025
00026
00027 #define WIN32_LEAN_AND_MEAN
00028
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