Skip to content

GameController tvOS xcode13.3 beta2

Alex Soto edited this page Mar 7, 2022 · 2 revisions

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

diff -ruN /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDualSenseAdaptiveTrigger.h /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDualSenseAdaptiveTrigger.h
--- /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDualSenseAdaptiveTrigger.h	2022-01-25 12:59:23.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDualSenseAdaptiveTrigger.h	2022-02-04 13:41:41.000000000 -0500
@@ -9,8 +9,10 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-/** The number of discrete control positions supported by the DualSense adaptive triggers. Each of these positions can be configured separately in multi-position feedback and multi-position vibration modes. */
-#define GC_DUALSENSE_ADAPTIVE_TRIGGER_DISCRETE_POSITION_COUNT 10
+enum {
+    /** The number of discrete control positions supported by the DualSense adaptive triggers. Each of these positions can be configured separately in multi-position feedback and multi-positiion vibration modes. */
+    GCDualSenseAdaptiveTriggerDiscretePositionCount NS_SWIFT_NAME(GCDualSenseAdaptiveTrigger.discretePositionCount) = 10,
+};
 
 typedef NS_ENUM(NSInteger, GCDualSenseAdaptiveTriggerMode) {
     /** The adaptive trigger effect is disabled. */
@@ -52,12 +54,12 @@
 
 typedef struct {
     /** An array of amplitudes associated with the GCDualSenseAdaptiveTriggerDiscretePositionCount control positions supported by the DualSense adaptive triggers. */
-    float values[GC_DUALSENSE_ADAPTIVE_TRIGGER_DISCRETE_POSITION_COUNT];
+    float values[GCDualSenseAdaptiveTriggerDiscretePositionCount];
 } GCDualSenseAdaptiveTriggerPositionalAmplitudes NS_SWIFT_NAME(GCDualSenseAdaptiveTrigger.PositionalAmplitudes) API_AVAILABLE(macos(12.3), ios(15.4), tvos(15.4));
 
 typedef struct {
     /** An array of resistive strengths associated with the GCDualSenseAdaptiveTriggerDiscretePositionCount control positions supported by the DualSense adaptive triggers. */
-    float values[GC_DUALSENSE_ADAPTIVE_TRIGGER_DISCRETE_POSITION_COUNT];
+    float values[GCDualSenseAdaptiveTriggerDiscretePositionCount];
 } GCDualSenseAdaptiveTriggerPositionalResistiveStrengths NS_SWIFT_NAME(GCDualSenseAdaptiveTrigger.PositionalResistiveStrengths) API_AVAILABLE(macos(12.3), ios(15.4), tvos(15.4));
 
 /**
Clone this wiki locally