This commit is contained in:
Klaus Basan
2018-06-01 14:33:33 +02:00
parent f6a598fe45
commit d39978a1d0
2 changed files with 5 additions and 10 deletions

View File

@@ -41,15 +41,12 @@ namespace BlackInput
void keyCombinationChanged(const BlackMisc::Input::CHotkeyCombination &); void keyCombinationChanged(const BlackMisc::Input::CHotkeyCombination &);
protected: protected:
//! Initializes the platform keyboard device
/*!
* Initializes the platform keyboard device
*/
virtual bool init() = 0; virtual bool init() = 0;
private: private:
static IKeyboard *m_instance; static IKeyboard *m_instance;
}; };
} } // ns
#endif // guard #endif // guard

View File

@@ -38,12 +38,10 @@ namespace BlackInput
virtual void processKeyEvent(CGEventType type, CGEventRef event); virtual void processKeyEvent(CGEventType type, CGEventRef event);
protected: protected:
//! \copydoc IKeyboard::init() //! \copydoc IKeyboard::init()
virtual bool init() override; virtual bool init() override;
private: private:
friend class IKeyboard; friend class IKeyboard;
//! Constructor //! Constructor
@@ -55,9 +53,9 @@ namespace BlackInput
CGEventRef event, CGEventRef event,
void *refcon); void *refcon);
BlackMisc::Input::CHotkeyCombination m_keyCombination; //!< Current status of pressed keys; BlackMisc::Input::CHotkeyCombination m_keyCombination; //!< Current status of pressed keys;
CFMachPortRef m_eventTap; CFMachPortRef m_eventTap;
}; };
} } // ns
#endif // BLACKINPUT_KEYBOARDMACOS_H #endif // guard