#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
|
bool
|
||||||
KeyState::isKeyDown(KeyButton button) const
|
CKeyState::fakeMediaKey(KeyID id)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
CKeyState::isKeyDown(KeyButton button) const
|
||||||
{
|
{
|
||||||
return (m_keys[button & kButtonMask] > 0);
|
return (m_keys[button & kButtonMask] > 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ public:
|
||||||
virtual bool fakeKeyUp(KeyButton button);
|
virtual bool fakeKeyUp(KeyButton button);
|
||||||
virtual void fakeAllKeysUp();
|
virtual void fakeAllKeysUp();
|
||||||
virtual bool fakeCtrlAltDel() = 0;
|
virtual bool fakeCtrlAltDel() = 0;
|
||||||
virtual bool fakeMediaKey(KeyID id) = 0;
|
virtual bool fakeMediaKey(KeyID id);
|
||||||
|
|
||||||
virtual bool isKeyDown(KeyButton) const;
|
virtual bool isKeyDown(KeyButton) const;
|
||||||
virtual KeyModifierMask
|
virtual KeyModifierMask
|
||||||
|
|
Loading…
Reference in New Issue