-
Notifications
You must be signed in to change notification settings - Fork 549
GameController iOS 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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h
--- /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h 2025-10-11 02:53:29
+++ /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCEventInteraction.h 2025-10-24 12:04:07
@@ -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h
--- /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h 2025-10-11 02:53:27
+++ /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCLinearInput.h 2025-10-24 12:04:05
@@ -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h
--- /Applications/Xcode_26.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h 2025-10-11 02:53:27
+++ /Applications/Xcode_26.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCPhysicalInputExtents.h 2025-10-24 12:04:07
@@ -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