#3305 Added default implementation for fakeMediaKey for Linux and Mac
This commit is contained in:
parent
9115d5570b
commit
d3814cc454
|
@ -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