Changeset 8073 for code/branches/kicklib/src/external/ois
- Timestamp:
- Mar 14, 2011, 4:08:06 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
- Property svn:mergeinfo changed
/code/branches/mac_osx (added) merged: 7789,7933-7934,8042-8049,8054-8056,8059-8060,8065,8069-8070,8072
- Property svn:mergeinfo changed
-
code/branches/kicklib/src/external/ois/CMakeLists.txt
r8071 r8073 35 35 OISPrereqs.h 36 36 37 37 #COMPILATION_BEGIN OISCompilation.cpp 38 38 OISEffect.cpp 39 39 OISException.cpp … … 43 43 OISKeyboard.cpp 44 44 OISObject.cpp 45 45 #COMPILATION_END 46 46 ) 47 47 IF(WIN32) … … 53 53 ENDIF() 54 54 55 # Some unexplained hackery for Visual Studio 2005 56 ADD_COMPILER_FLAGS("-D_WIN32_DCOM" MSVC8) 57 58 # MinGW doesn't come with some required Windows headers 59 IF(MINGW) 60 INCLUDE_DIRECTORIES(${WMI_INCLUDE_DIR}) 61 ENDIF() 62 55 63 ORXONOX_ADD_LIBRARY(ois_orxonox 56 64 ORXONOX_EXTERNAL … … 58 66 "OIS_NONCLIENT_BUILD" 59 67 VERSION 60 1. 268 1.3 61 69 SOURCE_FILES 62 70 ${OIS_FILES} … … 64 72 65 73 IF(WIN32) 66 TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES} )74 TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES} ${WMI_LIBRARY}) 67 75 ELSEIF(APPLE) 68 76 TARGET_LINK_LIBRARIES(ois_orxonox "/System/Library/Frameworks/IOKit.framework" "/System/Library/Frameworks/Carbon.framework") -
code/branches/kicklib/src/external/ois/OISPrereqs.h
r8071 r8073 101 101 //-------------- Common Classes, Enums, and Typdef's -------------------------// 102 102 #define OIS_VERSION_MAJOR 1 103 #define OIS_VERSION_MINOR 4103 #define OIS_VERSION_MINOR 3 104 104 #define OIS_VERSION_PATCH 0 105 #define OIS_VERSION_NAME "1. 4.0"105 #define OIS_VERSION_NAME "1.3.0" 106 106 107 107 #define OIS_VERSION ((OIS_VERSION_MAJOR << 16) | (OIS_VERSION_MINOR << 8) | OIS_VERSION_PATCH) -
code/branches/kicklib/src/external/ois/VERSION
r8071 r8073 1 OIS SVN trunk updated on 2010/10/07 (revision 26)2 https://wgois.svn.sourceforge.net/svnroot/wgois/ois/ trunk/1 OIS SVN v1.3 branch updated on 2011/02/20 (revision 32) 2 https://wgois.svn.sourceforge.net/svnroot/wgois/ois/branches/v1-3/ -
code/branches/kicklib/src/external/ois/changes_orxonox.diff
r8071 r8073 49 49 50 50 51 --- win32/Win32JoyStick.cpp 52 +++ win32/Win32JoyStick.cpp 53 @@ -26,6 +26,14 @@ 54 #include "OISEvents.h" 55 #include "OISException.h" 56 57 +// (Orxonox): Required for MinGW to compile properly 58 +#ifdef __MINGW32__ 59 +# include <oaidl.h> 60 +# ifndef __MINGW_EXTENSION 61 +# define __MINGW_EXTENSION __extension__ 62 +# endif 63 +#endif 64 + 65 #include <cassert> 66 #include <wbemidl.h> 67 #include <oleauto.h> 68 @@ -39,6 +47,11 @@ 69 } 70 #endif 71 72 +// (Orxonox): MinGW doesn't have swscanf_s 73 +#ifdef __MINGW32__ 74 +# define swscanf_s swscanf 75 +#endif 76 + 77 #ifdef OIS_WIN32_XINPUT_SUPPORT 78 # pragma comment(lib, "xinput.lib") 79 #endif 80 @@ -583,7 +596,12 @@ 81 bool bCleanupCOM = SUCCEEDED(hr); 82 83 // Create WMI 84 + // (Orxonox): Fix for MinGW 85 +#ifdef __MINGW32__ 86 + hr = CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID*)&pIWbemLocator); 87 +#else 88 hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator); 89 +#endif 90 if( FAILED(hr) || pIWbemLocator == NULL ) 91 goto LCleanup; 92 93 51 94 --- mac/MacHIDManager.cpp 52 95 +++ mac/MacHIDManager.cpp -
code/branches/kicklib/src/external/ois/linux/LinuxKeyboard.cpp
r8071 r8073 284 284 while( XPending(display) > 0 ) 285 285 { 286 XNextEvent(display, &event); if(KeyPress == event.type) 286 XNextEvent(display, &event); 287 288 if(KeyPress == event.type) 287 289 { 288 290 unsigned int character = 0; -
code/branches/kicklib/src/external/ois/mac/CMakeLists.txt
r8071 r8073 8 8 MacPrereqs.h 9 9 10 10 #COMPILATION_BEGIN OISMacCompilation.cpp 11 11 MacHelpers.cpp 12 12 MacHIDManager.cpp … … 15 15 MacKeyboard.cpp 16 16 MacMouse.cpp 17 17 #COMPILATION_END 18 18 ) -
code/branches/kicklib/src/external/ois/win32/Win32JoyStick.cpp
r8071 r8073 26 26 #include "OISEvents.h" 27 27 #include "OISException.h" 28 29 // (Orxonox): Required for MinGW to compile properly 30 #ifdef __MINGW32__ 31 # include <oaidl.h> 32 # ifndef __MINGW_EXTENSION 33 # define __MINGW_EXTENSION __extension__ 34 # endif 35 #endif 28 36 29 37 #include <cassert> … … 38 46 x = NULL; \ 39 47 } 48 #endif 49 50 // (Orxonox): MinGW doesn't have swscanf_s 51 #ifdef __MINGW32__ 52 # define swscanf_s swscanf 40 53 #endif 41 54 … … 584 597 585 598 // Create WMI 599 // (Orxonox): Fix for MinGW 600 #ifdef __MINGW32__ 601 hr = CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID*)&pIWbemLocator); 602 #else 586 603 hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator); 604 #endif 587 605 if( FAILED(hr) || pIWbemLocator == NULL ) 588 606 goto LCleanup;
Note: See TracChangeset
for help on using the changeset viewer.