|
|
|
@ -1,9 +1,5 @@
|
|
|
|
|
#include "inputmanagerimp.hpp"
|
|
|
|
|
|
|
|
|
|
#if defined(__APPLE__) && !defined(__LP64__)
|
|
|
|
|
#include <Carbon/Carbon.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <OgreRoot.h>
|
|
|
|
|
#include <OgreRenderWindow.h>
|
|
|
|
|
|
|
|
|
@ -56,12 +52,6 @@ namespace MWInput
|
|
|
|
|
, mOverencumberedMessageDelay(0.f)
|
|
|
|
|
, mAlwaysRunActive(false)
|
|
|
|
|
{
|
|
|
|
|
#if defined(__APPLE__) && !defined(__LP64__)
|
|
|
|
|
// Give the application window focus to receive input events
|
|
|
|
|
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
|
|
|
|
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
|
|
|
|
SetFrontProcess(&psn);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
Ogre::RenderWindow* window = ogre.getWindow ();
|
|
|
|
|
|
|
|
|
|