Skip to content

GameController macOS xcode14.1 b3

Israel Soto edited this page Sep 28, 2022 · 3 revisions

#GameController.framework https://github.com/xamarin/xamarin-macios/pull/16094

diff -ruN /Applications/Xcode_14.1.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDevicePhysicalInput.h /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDevicePhysicalInput.h
--- /Applications/Xcode_14.1.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDevicePhysicalInput.h	2022-09-07 13:41:32.000000000 -0500
+++ /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDevicePhysicalInput.h	2022-09-22 09:20:18.000000000 -0500
@@ -45,7 +45,7 @@
  @param element
  The element that has been modified.
  */
-@property (copy, nullable) void (^elementValueDidChangeHandler)(__kindof id<GCPhysicalInputElement> element);
+@property (copy, nullable) void (^elementValueDidChangeHandler)(__kindof id<GCDevicePhysicalInput> physicalInput, __kindof id<GCPhysicalInputElement> element);
 
 /**
  Polls the current state vector of the physical input and saves it to a new
@@ -67,7 +67,7 @@
  drain the pending input states from the queue.
  
     physicalInput.inputStateQueueDepth = 20;
-    physicalInput.inputStateAvailableHandler = ^{
+    physicalInput.inputStateAvailableHandler = ^(__kindof id<GCDevicePhysicalInput> physicalInput) {
         id<GCDevicePhysicalInputState, GCDevicePhysicalInputStateDiff> nextInputState;
         while ((nextInputState = [physicalInput nextInputState])) {
  
@@ -94,7 +94,7 @@
         }
     };
  */
-@property (copy, nullable) void (^inputStateAvailableHandler)(void);
+@property (copy, nullable) void (^inputStateAvailableHandler)(__kindof id<GCDevicePhysicalInput> physicalInput);
 
 /**
  The maximum number of input states to buffer.  If your application does not
Clone this wiki locally