Use local input manager

This commit is contained in:
Dean Herbert 2020-09-07 15:31:05 +09:00
parent daff060c9a
commit 1a55d92c71

View File

@ -48,7 +48,7 @@ namespace osu.Game.Graphics.Cursor
{
base.Update();
var lastMouseSource = GetContainingInputManager().CurrentState.Mouse.LastSource;
var lastMouseSource = inputManager.CurrentState.Mouse.LastSource;
bool hasValidInput = lastMouseSource != null && !(lastMouseSource is ISourcedFromTouch);
if (!hasValidInput || !CanShowCursor)