Skip to content

Commit 6f8a9dc

Browse files
committed
pr: outside of playmode enable devices.
1 parent 242f27e commit 6f8a9dc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Packages/com.unity.inputsystem/InputSystem/Editor/DeviceSimulator/InputSystemPlugin.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,20 @@ public override VisualElement OnCreateUI()
7171
private void OnUpdate()
7272
{
7373
if (!EditorApplication.isPlaying)
74+
{
75+
if (m_ConflictingDevicesDisabled)
76+
{
77+
SetConflictingDevicesDisabled(false);
78+
m_LastFocusedWindow = null;
79+
}
7480
return;
81+
}
7582

7683
var focusedWindow = EditorWindow.focusedWindow;
7784
if (focusedWindow == m_LastFocusedWindow)
7885
return;
79-
8086
m_LastFocusedWindow = focusedWindow;
87+
8188
var simulatorFocused =
8289
m_RootElement != null
8390
&& focusedWindow != null

0 commit comments

Comments
 (0)