Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 14, 2011, 4:08:06 AM (14 years ago)
Author:
rgrieder
Message:

Merged mac_osx branch (after renaming it from ois_update) into kicklib branch.

Location:
code/branches/kicklib
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib

  • code/branches/kicklib/src/external/ois/CMakeLists.txt

    r8071 r8073  
    3535  OISPrereqs.h
    3636
    37   #COMPILATION_BEGIN OISCompilation.cpp
     37#COMPILATION_BEGIN OISCompilation.cpp
    3838  OISEffect.cpp
    3939  OISException.cpp
     
    4343  OISKeyboard.cpp
    4444  OISObject.cpp
    45   #COMPILATION_END
     45#COMPILATION_END
    4646)
    4747IF(WIN32)
     
    5353ENDIF()
    5454
     55# Some unexplained hackery for Visual Studio 2005
     56ADD_COMPILER_FLAGS("-D_WIN32_DCOM" MSVC8)
     57
     58# MinGW doesn't come with some required Windows headers
     59IF(MINGW)
     60  INCLUDE_DIRECTORIES(${WMI_INCLUDE_DIR})
     61ENDIF()
     62
    5563ORXONOX_ADD_LIBRARY(ois_orxonox
    5664  ORXONOX_EXTERNAL
     
    5866    "OIS_NONCLIENT_BUILD"
    5967  VERSION
    60     1.2
     68    1.3
    6169  SOURCE_FILES
    6270    ${OIS_FILES}
     
    6472
    6573IF(WIN32)
    66   TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES})
     74  TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES} ${WMI_LIBRARY})
    6775ELSEIF(APPLE)
    6876  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  
    101101//-------------- Common Classes, Enums, and Typdef's -------------------------//
    102102#define OIS_VERSION_MAJOR 1
    103 #define OIS_VERSION_MINOR 4
     103#define OIS_VERSION_MINOR 3
    104104#define OIS_VERSION_PATCH 0
    105 #define OIS_VERSION_NAME "1.4.0"
     105#define OIS_VERSION_NAME "1.3.0"
    106106
    107107#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/
     1OIS SVN v1.3 branch updated on 2011/02/20 (revision 32)
     2https://wgois.svn.sourceforge.net/svnroot/wgois/ois/branches/v1-3/
  • code/branches/kicklib/src/external/ois/changes_orxonox.diff

    r8071 r8073  
    4949
    5050
     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
    5194--- mac/MacHIDManager.cpp
    5295+++ mac/MacHIDManager.cpp
  • code/branches/kicklib/src/external/ois/linux/LinuxKeyboard.cpp

    r8071 r8073  
    284284        while( XPending(display) > 0 )
    285285        {
    286                 XNextEvent(display, &event);            if(KeyPress == event.type)
     286                XNextEvent(display, &event);
     287
     288                if(KeyPress == event.type)
    287289                {
    288290                        unsigned int character = 0;
  • code/branches/kicklib/src/external/ois/mac/CMakeLists.txt

    r8071 r8073  
    88  MacPrereqs.h
    99
    10   #COMPILATION_BEGIN OISMacCompilation.cpp
     10#COMPILATION_BEGIN OISMacCompilation.cpp
    1111  MacHelpers.cpp
    1212  MacHIDManager.cpp
     
    1515  MacKeyboard.cpp
    1616  MacMouse.cpp
    17   #COMPILATION_END
     17#COMPILATION_END
    1818)
  • code/branches/kicklib/src/external/ois/win32/Win32JoyStick.cpp

    r8071 r8073  
    2626#include "OISEvents.h"
    2727#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
    2836
    2937#include <cassert>
     
    3846      x = NULL;         \
    3947   }
     48#endif
     49
     50// (Orxonox): MinGW doesn't have swscanf_s
     51#ifdef __MINGW32__
     52#       define swscanf_s swscanf
    4053#endif
    4154
     
    584597
    585598    // 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
    586603    hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator);
     604#endif
    587605    if( FAILED(hr) || pIWbemLocator == NULL )
    588606        goto LCleanup;
Note: See TracChangeset for help on using the changeset viewer.