mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 11:02:21 +03:00
lib/platform: Switch remaining ObjC source files to ObjC++
This commit is contained in:
parent
00e182d22e
commit
676fa39f9a
@ -85,8 +85,8 @@ fakeNativeMediaKey(KeyID id)
|
||||
data2:-1];
|
||||
CGEventRef upEvent = [upRef CGEvent];
|
||||
|
||||
CGEventPost(0, downEvent);
|
||||
CGEventPost(0, upEvent);
|
||||
CGEventPost(kCGHIDEventTap, downEvent);
|
||||
CGEventPost(kCGHIDEventTap, upEvent);
|
||||
|
||||
return true;
|
||||
}
|
@ -147,8 +147,8 @@ fakeNativeMediaKey(KeyID id)
|
||||
data2:-1];
|
||||
CGEventRef upEvent = [upRef CGEvent];
|
||||
|
||||
CGEventPost(0, downEvent);
|
||||
CGEventPost(0, upEvent);
|
||||
CGEventPost(kCGHIDEventTap, downEvent);
|
||||
CGEventPost(kCGHIDEventTap, upEvent);
|
||||
|
||||
return true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user