mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-19 09:27:37 +02:00
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:
parent
e9bf981eec
commit
69db341660
3 changed files with 36 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue