Skip to content

FIX: [UUM-145509] Simulator Plugin disabling input devices always. - #2457

Open
diverges wants to merge 4 commits into
developfrom
platform/workflows/fix-input-manager-device-simulator-plugin
Open

FIX: [UUM-145509] Simulator Plugin disabling input devices always.#2457
diverges wants to merge 4 commits into
developfrom
platform/workflows/fix-input-manager-device-simulator-plugin

Conversation

@diverges

@diverges diverges commented Jul 22, 2026

Copy link
Copy Markdown

Description

Fix an issue where the Simulator Window would disable all input devices while open even though the window was not focused. This caused "Game View" to not properly receive input events.

  • Added a UI foldout with helpbox explaining this behavior.
  • Used created UIElement to capture the panel InputSystemPlugin connects to.
  • Enable/Disable devices based on SimulatorWindow focus state.
Screen.Recording.2026-07-22.094016.mp4

Testing status & QA

Manual Testing.

Added automated tests for:

  • ConflictingDevicesAreNotDisabledOnCreate
  • ConflictingDeviceAddedWhileSimulatorFocused_IsDisabledThenReenabledOnDestroy
  • ConflictingDeviceAddedWhileSimulatorNotFocused_StaysEnabled
  • ConflictingDeviceAddedWhileSimulatorNotFocused_StaysEnabled

Overall Product Risks

  • Complexity: Low
  • Halo Effect: Low, specific to simulator window integration.

Comments to reviewers

Device simulator related fixes.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

@cla-assistant-unity

cla-assistant-unity Bot commented Jul 22, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@diverges
diverges force-pushed the platform/workflows/fix-input-manager-device-simulator-plugin branch from b3043c8 to 96cd571 Compare July 22, 2026 16:53
Fix an issue where the Simulator Window would disable all input devices
while open even though the window was not focused. This caused "Game View"
to not properly receive input events.

- Added a UI foldout with helpbox explaining this behavior.
- Used created UIElement to capture the panel `InputSystemPlugin` connects to.
- Enable/Disable devices based on SimulatorWindow focus state.
@diverges
diverges force-pushed the platform/workflows/fix-input-manager-device-simulator-plugin branch from 96cd571 to c40f0ce Compare July 22, 2026 16:54
@diverges diverges changed the title fix(DeviceSimulator): Simulator Plugin disabling input devices always. FIX: [UUM-145509] Simulator Plugin disabling input devices always. Jul 22, 2026
@diverges
diverges marked this pull request as ready for review July 27, 2026 22:39

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Harness Review

Needs changes

The focus-based change is close, but there is still a play-mode transition hole in the new state machine, and the accompanying test coverage does not build as checked in.

Reviewed commit 0047e168

🤖 Helpful? 👍/👎

Comment thread Assets/Tests/InputSystem/Plugins/DeviceSimulatorTests.cs
@codecov-github-com

codecov-github-com Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 82.35294% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...System/Editor/DeviceSimulator/InputSystemPlugin.cs 66.66% 15 Missing ⚠️
@@             Coverage Diff             @@
##           develop    #2457      +/-   ##
===========================================
+ Coverage    78.95%   78.97%   +0.02%     
===========================================
  Files          767      767              
  Lines       140780   140855      +75     
===========================================
+ Hits        111147   111235      +88     
+ Misses       29633    29620      -13     
Flag Coverage Δ
inputsystem_MacOS_6000.0 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.0_project 77.51% <82.35%> (+0.01%) ⬆️
inputsystem_MacOS_6000.3 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.3_project 77.50% <82.35%> (+0.01%) ⬆️
inputsystem_MacOS_6000.5 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.5_project 77.56% <82.35%> (+0.01%) ⬆️
inputsystem_MacOS_6000.6 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.6_project 77.56% <82.35%> (+0.01%) ⬆️
inputsystem_MacOS_6000.7 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.7_project 77.56% <82.35%> (+0.01%) ⬆️
inputsystem_Ubuntu_6000.0 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.0_project 77.42% <82.35%> (+0.01%) ⬆️
inputsystem_Ubuntu_6000.3 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.3_project 77.41% <82.35%> (+0.01%) ⬆️
inputsystem_Ubuntu_6000.5 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.5_project 77.47% <82.35%> (+0.01%) ⬆️
inputsystem_Ubuntu_6000.6 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.6_project 77.47% <82.35%> (+0.01%) ⬆️
inputsystem_Ubuntu_6000.7 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.7_project 77.48% <82.35%> (+0.02%) ⬆️
inputsystem_Windows_6000.0 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.0_project 77.58% <82.35%> (-0.04%) ⬇️
inputsystem_Windows_6000.3 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.3_project 77.57% <82.35%> (-0.04%) ⬇️
inputsystem_Windows_6000.5 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.5_project 77.64% <82.35%> (-0.04%) ⬇️
inputsystem_Windows_6000.6 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.6_project 77.64% <82.35%> (-0.04%) ⬇️
inputsystem_Windows_6000.7 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.7_project 77.64% <82.35%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../Tests/InputSystem/Plugins/DeviceSimulatorTests.cs 100.00% <100.00%> (ø)
...System/Editor/DeviceSimulator/InputSystemPlugin.cs 74.22% <66.66%> (+8.09%) ⬆️

... and 2 files with indirect coverage changes

ℹ️ Need help interpreting these results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant