Skip to content

Commit e10a07b

Browse files
authored
CHANGE: Enable XR support on Switch (#1252).
1 parent fa879e6 commit e10a07b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ however, it has to be formatted properly to pass verification tests.
1515
* This allows for certain optimizations.
1616
* Should the limits prove too tight, they can be raised in the future.
1717
* The most complex device we have at the moment (`Touchscreen`) has 242 controls and 616 bytes of state.
18+
- Enabled XR device support on Switch.
1819

1920
### Fixed
2021

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3156,7 +3156,7 @@ private static void PerformDefaultPluginInitialization()
31563156
Switch.SwitchSupportHID.Initialize();
31573157
#endif
31583158

3159-
#if (UNITY_EDITOR || UNITY_STANDALONE || UNITY_ANDROID || UNITY_IOS || UNITY_WSA) && UNITY_INPUT_SYSTEM_ENABLE_XR && ENABLE_VR
3159+
#if (UNITY_EDITOR || UNITY_STANDALONE || UNITY_ANDROID || UNITY_IOS || UNITY_WSA || UNITY_SWITCH) && UNITY_INPUT_SYSTEM_ENABLE_XR && ENABLE_VR
31603160
XR.XRSupport.Initialize();
31613161
#endif
31623162

0 commit comments

Comments
 (0)