mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 19:12:14 +03:00
#3305 Added default implementation for fakeMediaKey for Linux and Mac
This commit is contained in:
parent
d9a6c14170
commit
bd0d8e7321
@ -722,7 +722,13 @@ KeyState::fakeAllKeysUp()
|
||||
}
|
||||
|
||||
bool
|
||||
KeyState::isKeyDown(KeyButton button) const
|
||||
CKeyState::fakeMediaKey(KeyID id)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
CKeyState::isKeyDown(KeyButton button) const
|
||||
{
|
||||
return (m_keys[button & kButtonMask] > 0);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
virtual bool fakeKeyUp(KeyButton button);
|
||||
virtual void fakeAllKeysUp();
|
||||
virtual bool fakeCtrlAltDel() = 0;
|
||||
virtual bool fakeMediaKey(KeyID id) = 0;
|
||||
virtual bool fakeMediaKey(KeyID id);
|
||||
|
||||
virtual bool isKeyDown(KeyButton) const;
|
||||
virtual KeyModifierMask
|
||||
|
Loading…
Reference in New Issue
Block a user