mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 10:03:21 +08:00
Make OsuUserInputManager
dependency nullable for tournament client
This commit is contained in:
parent
7a6ecaff0d
commit
6199db11a2
@ -47,7 +47,7 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuUserInputManager inputManager { get; set; } = null!;
|
private OsuUserInputManager? inputManager { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuGame? game { get; set; }
|
private OsuGame? game { get; set; }
|
||||||
@ -63,8 +63,11 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
|
|
||||||
internalState.ValueChanged += onInternalStateChanged;
|
internalState.ValueChanged += onInternalStateChanged;
|
||||||
|
|
||||||
mouseInputSource.BindTo(inputManager.IsMouseInputSource);
|
if (inputManager != null)
|
||||||
mouseInputSource.BindValueChanged(_ => updateInternalVisibility(), true);
|
{
|
||||||
|
mouseInputSource.BindTo(inputManager.IsMouseInputSource);
|
||||||
|
mouseInputSource.BindValueChanged(_ => updateInternalVisibility(), true);
|
||||||
|
}
|
||||||
|
|
||||||
if (game != null)
|
if (game != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user