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 &);
protected:
/*!
* Initializes the platform keyboard device
*/
//! Initializes the platform keyboard device
virtual bool init() = 0;
private:
static IKeyboard *m_instance;
};
}
} // ns
#endif // guard

View File

@@ -38,12 +38,10 @@ namespace BlackInput
virtual void processKeyEvent(CGEventType type, CGEventRef event);
protected:
//! \copydoc IKeyboard::init()
virtual bool init() override;
private:
friend class IKeyboard;
//! Constructor
@@ -55,9 +53,9 @@ namespace BlackInput
CGEventRef event,
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;
};
}
} // ns
#endif // BLACKINPUT_KEYBOARDMACOS_H
#endif // guard