mirror of
https://github.com/debauchee/barrier.git
synced 2025-08-06 10:09:28 +02:00
#3305 Used Mac native way to simulate media keys
This commit is contained in:
parent
e72e86c9b2
commit
d9a6c14170
11 changed files with 171 additions and 6 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
#include "platform/OSXKeyState.h"
|
||||
#include "platform/OSXUchrKeyResource.h"
|
||||
#include "platform/OSXMediaKeySimulator.h"
|
||||
#include "arch/Arch.h"
|
||||
#include "base/Log.h"
|
||||
|
||||
|
@ -316,6 +317,12 @@ OSXKeyState::fakeCtrlAltDel()
|
|||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
COSXKeyState::fakeMediaKey(KeyID id)
|
||||
{
|
||||
return fakeNativeMediaKey(id);;
|
||||
}
|
||||
|
||||
CGEventFlags
|
||||
OSXKeyState::getModifierStateAsOSXFlags()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue