mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Use local input manager
This commit is contained in:
parent
daff060c9a
commit
1a55d92c71
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user