Skip to content

Commit 6617fd6

Browse files
vvukchris-massie
andauthored
NEW: Add UNITY_VISIONOS ifdefs where appropriate (#1709)
* Add UNITY_VISIONOS ifdefs where appropriate * Add CHANGELOG --------- Co-authored-by: Chris Massie <chris.massie@unity3d.com>
1 parent 62694cc commit 6617fd6

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ however, it has to be formatted properly to pass verification tests.
1010

1111
## [Unreleased]
1212

13+
### Added
14+
- Preliminary support for visionOS.
1315

1416
## [1.6.3] - 2023-07-11
1517

Packages/com.unity.inputsystem/InputSystem/InputSystem.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3625,11 +3625,11 @@ private static void PerformDefaultPluginInitialization()
36253625
{
36263626
UISupport.Initialize();
36273627

3628-
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_WSA || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS
3628+
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_WSA || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS
36293629
XInputSupport.Initialize();
36303630
#endif
36313631

3632-
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_PS5 || UNITY_WSA || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS
3632+
#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_PS4 || UNITY_PS5 || UNITY_WSA || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS
36333633
DualShockSupport.Initialize();
36343634
#endif
36353635

@@ -3641,7 +3641,7 @@ private static void PerformDefaultPluginInitialization()
36413641
Android.AndroidSupport.Initialize();
36423642
#endif
36433643

3644-
#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS
3644+
#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS
36453645
iOS.iOSSupport.Initialize();
36463646
#endif
36473647

@@ -3665,7 +3665,7 @@ private static void PerformDefaultPluginInitialization()
36653665
Linux.LinuxSupport.Initialize();
36663666
#endif
36673667

3668-
#if UNITY_EDITOR || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS || UNITY_WSA
3668+
#if UNITY_EDITOR || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS || UNITY_WSA || UNITY_VISIONOS
36693669
OnScreen.OnScreenSupport.Initialize();
36703670
#endif
36713671

Packages/com.unity.inputsystem/InputSystem/Plugins/OnScreen/OnScreenSupport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS || UNITY_WSA
1+
#if UNITY_EDITOR || UNITY_ANDROID || UNITY_IOS || UNITY_TVOS || UNITY_WSA || UNITY_VISIONOS
22
namespace UnityEngine.InputSystem.OnScreen
33
{
44
/// <summary>

Packages/com.unity.inputsystem/InputSystem/Plugins/iOS/IOSGameController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || PACKAGE_DOCS_GENERATION
1+
#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS || PACKAGE_DOCS_GENERATION
22
using System.Runtime.InteropServices;
33
using UnityEngine.InputSystem.DualShock;
44
using UnityEngine.InputSystem.Layouts;
@@ -135,4 +135,4 @@ public class DualSenseGampadiOS : DualShockGamepad
135135
{
136136
}
137137
}
138-
#endif // UNITY_EDITOR || UNITY_IOS || UNITY_TVOS
138+
#endif // UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS

Packages/com.unity.inputsystem/InputSystem/Plugins/iOS/iOSSupport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS
1+
#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS
22
using UnityEngine.InputSystem.iOS.LowLevel;
33
using UnityEngine.InputSystem.Layouts;
44
using UnityEngine.InputSystem.LowLevel;
@@ -62,4 +62,4 @@ public static void Initialize()
6262
}
6363
}
6464
}
65-
#endif // UNITY_EDITOR || UNITY_IOS || UNITY_TVOS
65+
#endif // UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS

0 commit comments

Comments
 (0)