Skip to content

GameController MacCatalyst xcode26.2 b1

Alex Soto edited this page Nov 5, 2025 · 1 revision

#GameController.framework

diff -ruN /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h
--- /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h	2025-10-11 04:42:19
+++ /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h	2025-10-24 11:23:58
@@ -18,6 +18,8 @@
     GCUIEventTypeNone           = (0U),
     /** A constant that represents events from a game controller. */
     GCUIEventTypeGamepad        = (1U << 0),
+    /** A constant that represents events from a stylus. */
+    GCUIEventTypeStylus         API_AVAILABLE(visionos(26.2)) API_UNAVAILABLE(macCatalyst, ios, tvos) API_UNAVAILABLE(macos) = (1U << 1),
 } API_AVAILABLE(macCatalyst(18.0), ios(18.0), visionos(2.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(macos);
 
 
@@ -47,8 +49,8 @@
 - (instancetype)init NS_DESIGNATED_INITIALIZER;
 
 /**
- *  The types of game controller events that should be delivered through
- *  the Game Controller framework.
+ *  The types of events that should be delivered through the Game Controller
+ *  framework.
  */
 @property (nonatomic, readwrite) GCUIEventTypes handledEventTypes;
 
diff -ruN /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h
--- /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h	2025-10-11 04:42:17
+++ /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h	2025-10-24 11:23:55
@@ -9,8 +9,8 @@
 
 @protocol GCPhysicalInputElement;
 @protocol GCPhysicalInputSource;
+@protocol GCPhysicalInputExtents;
 
-
 NS_ASSUME_NONNULL_BEGIN
 
 /**
@@ -76,6 +76,11 @@
  */
 @property (readonly) NSTimeInterval lastValueLatency;
 
+/**
+ An object describing the physical extents of the input, if the input represents
+ a physical unit of measurement.
+ */
+@property (readonly, nullable) id<GCPhysicalInputExtents> physicalExtents API_AVAILABLE(macos(26.2), ios(26.2), tvos(26.2), visionos(26.2));
 
 
 /**
diff -ruN /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h
--- /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h	2025-10-11 04:42:17
+++ /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h	2025-10-24 11:23:58
@@ -9,4 +9,28 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
+/**
+ *  Physical extents scale the normalized value reported by `GCLinearInput`
+ *  into physical units.
+ */
+API_AVAILABLE(macos(26.2), ios(26.2), tvos(26.2), visionos(26.2))
+@protocol GCPhysicalInputExtents <NSObject>
+
+/**
+ *  The value of the input, scaled into physical units.
+ */
+@property (readonly) double scaledValue;
+
+/**
+ *  The minimum value for the physical extent of the input.
+ */
+@property (readonly) double minimumValue;
+
+/**
+ *  The maximum value for the physical extent of the input.
+ */
+@property (readonly) double maximumValue;
+
+@end
+
 NS_ASSUME_NONNULL_END
Clone this wiki locally