#3305 Added default implementation for fakeMediaKey for Linux and Mac

This commit is contained in:
Jerry (Xinyu Hou) 2016-06-08 16:49:04 +01:00
parent 9115d5570b
commit d3814cc454
2 changed files with 8 additions and 2 deletions

View File

@ -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);
}

View File

@ -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