mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 11:45:40 +08:00
Style
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user