Skip to content

Commit aee550f

Browse files
committed
Added missing define for Switch 2
1 parent 41146c4 commit aee550f

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
@@ -10,6 +10,7 @@ however, it has to be formatted properly to pass verification tests.
1010

1111
## [Unreleased] - yyyy-mm-dd
1212
- Fixed InputControl picker not updating correctly when the Input Actions Window was dirty. [ISXB-1221](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1221)
13+
- Added missing UNITY_SWITCH2 define in Gamepad.cs to fix button display names
1314

1415
### Changed
1516
- Expanded `RebindingUISample` to include a "game mode" state and a "menu state" to be more similar to a real game. Also added action-performed indicators (`InputActionIndicator`) illustrating when actions get triggered.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public struct GamepadState : IInputStateTypeInfo
8787
internal const string ButtonNorthShortDisplayName = "Triangle";
8888
internal const string ButtonWestShortDisplayName = "Square";
8989
internal const string ButtonEastShortDisplayName = "Circle";
90-
#elif UNITY_SWITCH
90+
#elif UNITY_SWITCH || UNITY_SWITCH2
9191
internal const string ButtonSouthShortDisplayName = "B";
9292
internal const string ButtonNorthShortDisplayName = "X";
9393
internal const string ButtonWestShortDisplayName = "Y";

0 commit comments

Comments
 (0)