patch by jerry: fixed new event queue on Mac and Linu

This commit is contained in:
Nick Bolton 2013-06-29 22:02:04 +00:00
parent 608074c041
commit 18a3db6843
36 changed files with 135 additions and 76 deletions

View file

@ -49,13 +49,16 @@ class CMutex;
class CThread;
class COSXKeyState;
class COSXScreenSaver;
class IEventQueue;
//! Implementation of IPlatformScreen for OS X
class COSXScreen : public CPlatformScreen {
public:
COSXScreen(bool isPrimary, bool autoShowHideCursor=true);
COSXScreen(IEventQueue* events, bool isPrimary, bool autoShowHideCursor=true);
virtual ~COSXScreen();
IEventQueue* getEvents() const { return m_events; }
// IScreen overrides
virtual void* getEventTarget() const;
virtual bool getClipboard(ClipboardID id, IClipboard*) const;
@ -335,6 +338,8 @@ private:
// cursor will hide and show on enable and disable if true.
bool m_autoShowHideCursor;
IEventQueue* m_events;
};
#endif