mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 19:47:33 +09: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();
|
base.Update();
|
||||||
|
|
||||||
var lastMouseSource = GetContainingInputManager().CurrentState.Mouse.LastSource;
|
var lastMouseSource = inputManager.CurrentState.Mouse.LastSource;
|
||||||
bool hasValidInput = lastMouseSource != null && !(lastMouseSource is ISourcedFromTouch);
|
bool hasValidInput = lastMouseSource != null && !(lastMouseSource is ISourcedFromTouch);
|
||||||
|
|
||||||
if (!hasValidInput || !CanShowCursor)
|
if (!hasValidInput || !CanShowCursor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user