FIX: Input devices being lost up on upgrade to the new input version [ISX-2569] by K-Tone · Pull Request #2438 · Unity-Technologies/InputSystem · GitHub
Skip to content

FIX: Input devices being lost up on upgrade to the new input version [ISX-2569]#2438

Merged
K-Tone merged 1 commit into
developfrom
anthony/isx-2569-fix-fepm-upgrade-device-loss
Jul 2, 2026
Merged

FIX: Input devices being lost up on upgrade to the new input version [ISX-2569]#2438
K-Tone merged 1 commit into
developfrom
anthony/isx-2569-fix-fepm-upgrade-device-loss

Conversation

@K-Tone

@K-Tone K-Tone commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Description

So the problem we're trying to fix here is that when you have a working project with pre-FEPM InputSystem and you then update the input package to the one that has the FEPM change, all input comes broken. The root problem appeared that all devices were lost during upgrade.

The reason devices got lost during upgrade is somewhat tricky to explain, but it all comes down to the fact that native will only communicate the current devices once per Unity process. If you lose devices once, it's permanent - entering playmode doesn't list devices again.

The way we lost devices was due to us renaming an in-memory scriptable object class that was used to keep state from InputSystemObject to InputSystemStateManager. Up on upgrade recompilation, Unity realised that the class for the InputSystemObject SO is no longer available so it shall be dropped, and all the devices died with it.

Hereby, we bring back the old class with the old meta info so that the forward upgrade can work for now.

Testing status & QA

Tried locally.

Overall Product Risks

  • Complexity: Low
  • Halo Effect: Low

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.

@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.

Perfect

Focused fix for a script GUID mismatch that ensures input devices survive the upgrade process.

🤖 Helpful? 👍/👎

@K-Tone K-Tone requested review from Pauliusd01 and ekcoh June 15, 2026 18:04
@codecov-github-com

codecov-github-com Bot commented Jun 15, 2026

Copy link
Copy Markdown

@ekcoh ekcoh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not sure I fully understand this fix but looks like fixing broken serialisation. The key takeaway here IMO is that this (not this PR; but how this work) is the wrong solution to the problem. I will link this issue/PR as a motivational case for why device ownership, enumeration, reconnects should live in the module (native) and not in the package. This would make this + any serialisation push/pop disappear from the package. Good fix!

@K-Tone

K-Tone commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the input Hakan! I would have totally loved if we could poll data from native at certain points instead of messing with ScriptableObjects. We do know keeping data is needed, just that if we keep copies in managed that appears to cost much more. I would have totally loved trying to minimise our managed state that needs to survive domain reload.

@Pauliusd01

Copy link
Copy Markdown
Collaborator

Just leaving my status that I am currently busy with our module port, it is unlikely to be checked this week

@K-Tone

K-Tone commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author

Simply to have it said somewhere, I'm on a PTO in July so if it's not this week then either someone else will have to address feedback on this PR or still myself but in August.

@Pauliusd01

Copy link
Copy Markdown
Collaborator

I'll give it a go today

@Pauliusd01

Copy link
Copy Markdown
Collaborator

/test_plan

@Unity-Technologies Unity-Technologies deleted a comment from u-pr Bot Jul 1, 2026
@u-pr

u-pr Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@Pauliusd01 Pauliusd01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, checked upgrading, reimporting and did some basic fast enter play mode rechecks.

@K-Tone K-Tone force-pushed the anthony/isx-2569-fix-fepm-upgrade-device-loss branch from a8a5599 to b32a0f9 Compare July 1, 2026 13:51
@K-Tone K-Tone merged commit 61d8245 into develop Jul 2, 2026
107 checks passed
@K-Tone K-Tone deleted the anthony/isx-2569-fix-fepm-upgrade-device-loss branch July 2, 2026 06:46
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.

3 participants