Skip to content
Merged
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
7 changes: 7 additions & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased] - yyyy-mm-dd

### Fixed

- Improved New Input System warning dialog, Native Device Inputs Not Enabled [UUM-132151].

### Changed

### Added


## [1.19.0] - 2026-02-24
Expand Down
24 changes: 20 additions & 4 deletions Packages/com.unity.inputsystem/InputSystem/InputSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3587,11 +3587,27 @@
!EditorPlayerSettingHelpers.newSystemBackendsEnabled &&
!Application.isBatchMode)
{
const string dialogText = "This project is using the new input system package but the native platform backends for the new input system are not enabled in the player settings. " +
"This means that no input from native devices will come through." +
"\n\nDo you want to enable the backends? Doing so will *RESTART* the editor.";
const string dialogText = "The new Input System Package is installed, but not configured to enable native device input, such as keyboard, mouse, or gamepad actions. " +
"\n\nThe Active Input Handling parameter must be set to \"Input System Package (New)\", under Project Settings > Player." +
"\n\nNote: Changing the active input handling requires to restart the Editor.";

if (EditorUtility.DisplayDialog("Warning", dialogText, "Yes", "No"))
bool userChoseEnableAndRestart;
#if UNITY_6000_3_OR_NEWER
userChoseEnableAndRestart = EditorUtility.DisplayDialog(

Check warning on line 3596 in Packages/com.unity.inputsystem/InputSystem/InputSystem.cs

View check run for this annotation

Codecov GitHub.com / codecov/patch

Packages/com.unity.inputsystem/InputSystem/InputSystem.cs#L3596

Added line #L3596 was not covered by tests
"Input System native platform backend not enabled",
dialogText,
"Enable & Restart",
"Don't Enable",
DialogOptOutDecisionType.ForThisSession,
"RestartInstalledInputHandlingWarning");
#else
userChoseEnableAndRestart = EditorUtility.DisplayDialog(

Check warning on line 3604 in Packages/com.unity.inputsystem/InputSystem/InputSystem.cs

View check run for this annotation

Codecov GitHub.com / codecov/patch

Packages/com.unity.inputsystem/InputSystem/InputSystem.cs#L3604

Added line #L3604 was not covered by tests
"Input System native platform backend not enabled",
dialogText,
"Enable & Restart",
"Don't Enable");
#endif
if (userChoseEnableAndRestart)

Check warning on line 3610 in Packages/com.unity.inputsystem/InputSystem/InputSystem.cs

View check run for this annotation

Codecov GitHub.com / codecov/patch

Packages/com.unity.inputsystem/InputSystem/InputSystem.cs#L3610

Added line #L3610 was not covered by tests
{
EditorPlayerSettingHelpers.newSystemBackendsEnabled = true;
EditorHelpers.RestartEditorAndRecompileScripts();
Expand Down