Ticket #31974: patch-src_OISInputManager.cpp.diff
File patch-src_OISInputManager.cpp.diff, 944 bytes (added by marin.saric@…, 13 years ago) |
---|
-
src/OISInputManager.cpp
35 35 #elif defined OIS_LINUX_PLATFORM 36 36 # include "linux/LinuxInputManager.h" 37 37 #elif defined OIS_APPLE_PLATFORM 38 # include "mac/CocoaInputManager.h" 38 39 # include "mac/MacInputManager.h" 39 40 #elif defined OIS_IPHONE_PLATFORM 40 41 # include "iphone/iPhoneInputManager.h" … … 113 114 #elif defined OIS_LINUX_PLATFORM 114 115 im = new LinuxInputManager(); 115 116 #elif defined OIS_APPLE_PLATFORM 116 im = new MacInputManager(); 117 ParamList::iterator i = paramList.find("WINDOW"); 118 if(i != paramList.end()) 119 { 120 id obj = (id)strtoul(i->second.c_str(), 0, 10); 121 if(obj && [obj isKindOfClass:[NSWindow class]]) 122 im = new CocoaInputManager(); 123 #ifndef __LP64__ 124 else 125 im = new MacInputManager(); 126 #endif 127 } 117 128 #elif defined OIS_IPHONE_PLATFORM 118 129 im = new iPhoneInputManager(); 119 130 #else