Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed an incorrect ArraysHelper.HaveDuplicateReferences implementation that didn't use its arguments right [ISXB-1792] (https://github.com/Unity-Technologies/InputSystem/pull/2376)
- Fixed `InputAction.IsPressed`, `WasPressedThisFrame`, and `WasReleasedThisFrame` using a `ButtonControl`'s `pressPoint` when a binding also had an explicit `PressInteraction` with its own `pressPoint`, which could make those APIs disagree with the interaction's press and release behavior. Action-level press APIs now follow the interaction threshold when both are set explicitly.
- Fixed `IndexOutOfRangeException` in `InputDeviceBuilder` when connecting an HID gamepad whose report descriptor declares a hat switch with Report Size 8 (e.g. ESP32-BLE-Gamepad). The HID layer now anchors the hat's directional sub-controls to the hat's own byte instead of letting the layout system auto-allocate a fresh byte for each [UUM-143659](https://jira.unity3d.com/browse/UUM-143659).
- Fixed Xbox 360 (and other Xbox) controllers on macOS falling back to the generic HID joystick layout instead of `XboxGamepadMacOSNative`. The matcher used `WithManufacturer("Microsoft")`, which is an exact case-insensitive equality check for plain-letter patterns and therefore did not match real-world manufacturer strings such as `"Microsoft Corporation"` (sometimes prefixed with an invalid byte rendered as U+FFFD on macOS Tahoe). Switched to `WithManufacturerContains("Microsoft")`.

### Changed
- Action-level `IsPressed`, `WasPressedThisFrame`, and `WasReleasedThisFrame` for bindings to `Vector2Control` / `StickControl` no longer consult a per-control `pressPoint` on the vector (that field was removed). Use a `Press` interaction to set a custom threshold, or rely on `defaultButtonPressPoint`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ public static void Initialize()


// Matches macOS native support for Xbox Controllers
// macOS reports all Xbox controllers as "Controller" with manufacter Microsoft
// macOS reports all Xbox controllers as "Controller" with manufacturer Microsoft, though the
// exact manufacturer string varies ("Microsoft Corporation", sometimes with a leading invalid
// byte rendered as U+FFFD on macOS Tahoe). WithManufacturer does an exact case-insensitive
// equality check for plain-letter patterns, so we use WithManufacturerContains here.
InputSystem.RegisterLayout<XboxGamepadMacOSNative>(
matches: new InputDeviceMatcher().WithInterface("HID")
.WithProduct("Controller").WithManufacturer("Microsoft"));
.WithProduct("Controller").WithManufacturerContains("Microsoft"));

// Matching older Xbox One controllers that have different View and Share buttons than the newer Xbox Series
// controllers.
Expand Down
Loading