Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
3 changes: 3 additions & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ however, it has to be formatted properly to pass verification tests.

## [Unreleased] - yyyy-mm-dd

### Fixed
- Fixed an issue where ButtonStates are not fully updated when switching SingleUnifiedPointer. [ISXB-1356](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1356)

## [1.13.1] - 2025-02-18

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,15 @@ private int GetPointerStateIndexFor(InputControl control, bool createIfNotExists
// Make sure these don't linger around when we switch to a different kind of pointer.
eventData.trackedDeviceOrientation = default;
eventData.trackedDevicePosition = default;

// We only have a single pointer state and current frame press state values was based on previous eventData.
// Make sure these get updated when we switch.
if (m_PointerBehavior == UIPointerBehavior.SingleUnifiedPointer)
{
pointer.leftButton.OnEndFrame();
pointer.rightButton.OnEndFrame();
pointer.middleButton.OnEndFrame();
}
}

if (pointerType == UIPointerType.Touch)
Expand Down