lib/platform: Switch remaining ObjC source files to ObjC++

This commit is contained in:
Povilas Kanapickas 2021-11-01 05:53:20 +02:00
parent 00e182d22e
commit 676fa39f9a
6 changed files with 4 additions and 4 deletions

View File

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

View File

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