added cursor show/hide test, and modified osx screen class to be more robust with memory usage. also fixed some bad code style.

This commit is contained in:
Nick Bolton 2012-10-28 11:36:30 +00:00
parent e9bf981eec
commit 69db341660
3 changed files with 36 additions and 27 deletions

View file

@ -52,7 +52,7 @@ class COSXScreenSaver;
//! Implementation of IPlatformScreen for OS X
class COSXScreen : public CPlatformScreen {
public:
COSXScreen(bool isPrimary);
COSXScreen(bool isPrimary, bool autoShowHideCursor=true);
virtual ~COSXScreen();
// IScreen overrides
@ -335,6 +335,9 @@ private:
double m_lastDoubleClick;
SInt32 m_lastSingleClickXCursor;
SInt32 m_lastSingleClickYCursor;
// cursor will hide and show on enable and disable if true.
bool m_autoShowHideCursor;
};
#endif