From bd0d8e73219e64e20517c5ce5bb2c93bfe17fdeb Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Wed, 8 Jun 2016 16:49:04 +0100 Subject: [PATCH] #3305 Added default implementation for fakeMediaKey for Linux and Mac --- src/lib/synergy/KeyState.cpp | 8 +++++++- src/lib/synergy/KeyState.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/synergy/KeyState.cpp b/src/lib/synergy/KeyState.cpp index 6adeb243..6d4a4436 100644 --- a/src/lib/synergy/KeyState.cpp +++ b/src/lib/synergy/KeyState.cpp @@ -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); } diff --git a/src/lib/synergy/KeyState.h b/src/lib/synergy/KeyState.h index 3d148353..2cebe168 100644 --- a/src/lib/synergy/KeyState.h +++ b/src/lib/synergy/KeyState.h @@ -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