Title: [264887] trunk/Source/WebCore
Revision
264887
Author
beid...@apple.com
Date
2020-07-24 22:42:51 -0700 (Fri, 24 Jul 2020)

Log Message

Throw another one on the pile take 2.

* platform/gamepad/cocoa/GameControllerGamepadProvider.mm:
(WebCore::GameControllerGamepadProvider::controllerDidConnect): Back to the NSString* trick now
  we know the function is declared.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (264886 => 264887)


--- trunk/Source/WebCore/ChangeLog	2020-07-25 05:29:18 UTC (rev 264886)
+++ trunk/Source/WebCore/ChangeLog	2020-07-25 05:42:51 UTC (rev 264887)
@@ -1,5 +1,13 @@
 2020-07-24  Brady Eidson  <beid...@apple.com>
 
+        Throw another one on the pile take 2.
+
+        * platform/gamepad/cocoa/GameControllerGamepadProvider.mm:
+        (WebCore::GameControllerGamepadProvider::controllerDidConnect): Back to the NSString* trick now
+          we know the function is declared.
+
+2020-07-24  Brady Eidson  <beid...@apple.com>
+
         Throw another one on the pile.
 
         * platform/gamepad/cocoa/GameControllerGamepadProvider.mm: (Actually include the SPI header)

Modified: trunk/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm (264886 => 264887)


--- trunk/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm	2020-07-25 05:29:18 UTC (rev 264886)
+++ trunk/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm	2020-07-25 05:42:51 UTC (rev 264887)
@@ -110,8 +110,8 @@
         if (!serviceInfo.service)
             continue;
 
-        auto cfVendorID = adoptCF((CFNumberRef)IOHIDServiceClientCopyProperty(serviceInfo.service, CFSTR(kIOHIDVendorIDKey)));
-        auto cfProductID = adoptCF((CFNumberRef)IOHIDServiceClientCopyProperty(serviceInfo.service, CFSTR(kIOHIDProductIDKey)));
+        auto cfVendorID = adoptCF((CFNumberRef)IOHIDServiceClientCopyProperty(serviceInfo.service, (__bridge CFStringRef)@(kIOHIDVendorIDKey)));
+        auto cfProductID = adoptCF((CFNumberRef)IOHIDServiceClientCopyProperty(serviceInfo.service, (__bridge CFStringRef)@(kIOHIDProductIDKey)));
 
         int vendorID, productID;
         CFNumberGetValue(cfVendorID.get(), kCFNumberIntType, &vendorID);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to