Explorar o código

Use exclusive mode for the apple remote

This should improve reliabliity
Tobias Hieta %!s(int64=9) %!d(string=hai) anos
pai
achega
7928c84607
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/input/apple/AppleRemoteDelegate.mm

+ 3 - 2
src/input/apple/AppleRemoteDelegate.mm

@@ -19,8 +19,9 @@
 - (bool)setupRemote
 {
   [[HIDRemote sharedHIDRemote] setDelegate:self];
-  [[HIDRemote sharedHIDRemote] setSimulateHoldEvents:false];
-  if (![[HIDRemote sharedHIDRemote] startRemoteControl:kHIDRemoteModeExclusiveAuto])
+  [[HIDRemote sharedHIDRemote] setSimulateHoldEvents:NO];
+  [[HIDRemote sharedHIDRemote] setExclusiveLockLendingEnabled:YES];
+  if (![[HIDRemote sharedHIDRemote] startRemoteControl:kHIDRemoteModeExclusive])
   {
     QLOG_ERROR() << "Failed to init AppleRemote";
     return false;