Skip to content

Commit 29cde6c

Browse files
authored
FIX: ISXB-927 Removed platform-specific feature flags relating to Windows Gaming Input since obsolete (#1955)
* FIX: ISXB-927 Removed platform-specific feature flags relating to Windows Gaming Input since obsolete (#1955)
1 parent 6f3f40c commit 29cde6c

File tree

5 files changed

+1
-56
lines changed

5 files changed

+1
-56
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ however, it has to be formatted properly to pass verification tests.
1212

1313
### Change
1414
- Added warning messages to both `OnScreenStick` and `OnScreenButton` Inspector editors that would display a warning message in case on-screen control components are added to a `GameObject` not part of a valid UI hierarchy.
15+
- Changed behavior for internal feature flag relating to Windows Gaming Input to be ignored on non-supported platforms.
1516

1617
### Fixed
1718
- Avoid potential crashes from `NullReferenceException` in `FireStateChangeNotifications`.

Packages/com.unity.inputsystem/InputSystem/Devices/Commands/UseWindowsGamingInputCommand.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

Packages/com.unity.inputsystem/InputSystem/Devices/Commands/UseWindowsGamingInputCommand.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Packages/com.unity.inputsystem/InputSystem/InputFeatureNames.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ internal static class InputFeatureNames
44
{
55
public const string kRunPlayerUpdatesInEditMode = "RUN_PLAYER_UPDATES_IN_EDIT_MODE";
66
public const string kDisableUnityRemoteSupport = "DISABLE_UNITY_REMOTE_SUPPORT";
7-
public const string kUseWindowsGamingInputBackend = "USE_WINDOWS_GAMING_INPUT_BACKEND";
87
public const string kUseOptimizedControls = "USE_OPTIMIZED_CONTROLS";
98
public const string kUseReadValueCaching = "USE_READ_VALUE_CACHING";
109
public const string kParanoidReadValueCachingChecks = "PARANOID_READ_VALUE_CACHING_CHECKS";

Packages/com.unity.inputsystem/InputSystem/InputManager.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,13 +2644,6 @@ internal void ApplySettings()
26442644
#if UNITY_EDITOR
26452645
runPlayerUpdatesInEditMode = m_Settings.IsFeatureEnabled(InputFeatureNames.kRunPlayerUpdatesInEditMode);
26462646
#endif
2647-
2648-
if (m_Settings.IsFeatureEnabled(InputFeatureNames.kUseWindowsGamingInputBackend))
2649-
{
2650-
var command = UseWindowsGamingInputCommand.Create(true);
2651-
if (ExecuteGlobalCommand(ref command) < 0)
2652-
Debug.LogError($"Could not enable Windows.Gaming.Input");
2653-
}
26542647
}
26552648

26562649
// Cache some values.

0 commit comments

Comments
 (0)