From 00d830ef4a8da1e813dd11b84fd5f5056a954116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Freire?= Date: Fri, 27 Sep 2024 17:13:05 +0200 Subject: [PATCH] Change bit field of Xbox "View" button --- Packages/com.unity.inputsystem/CHANGELOG.md | 3 +++ .../InputSystem/Plugins/XInput/XboxGamepadMacOS.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index d06a397cfb..ecb1e2c82e 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -14,6 +14,9 @@ however, it has to be formatted properly to pass verification tests. - Added the display of the device flag `CanRunInBackground` in device debug view. - Added analytics for programmatic `InputAction` setup via `InputActionSetupExtensions` when exiting play-mode. +### Fixed +- Fixed wrong mapping of Xbox Series S|X and Xbox One wireless controllers "View" button on macOS.[ISXB-385](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-385) + ## [1.11.1] - 2024-09-26 ### Fixed diff --git a/Packages/com.unity.inputsystem/InputSystem/Plugins/XInput/XboxGamepadMacOS.cs b/Packages/com.unity.inputsystem/InputSystem/Plugins/XInput/XboxGamepadMacOS.cs index f789493444..ab43ddbaec 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Plugins/XInput/XboxGamepadMacOS.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Plugins/XInput/XboxGamepadMacOS.cs @@ -111,7 +111,7 @@ internal struct XInputControllerWirelessOSXState : IInputStateTypeInfo public enum Button { Start = 11, - Select = 16, + Select = 10, LeftThumbstickPress = 13, RightThumbstickPress = 14, LeftShoulder = 6,