Fix some remaining usage of local InputManager instances

This commit is contained in:
Dean Herbert 2017-08-16 13:07:18 +09:00
parent 6ee4716ec5
commit a5007fc64f
5 changed files with 6 additions and 6 deletions

View File

@ -152,7 +152,7 @@ namespace osu.Game.Overlays.Chat
protected override void OnFocus(InputState state) protected override void OnFocus(InputState state)
{ {
InputManager.ChangeFocus(search); GetContainingInputManager().ChangeFocus(search);
base.OnFocus(state); base.OnFocus(state);
} }

View File

@ -243,7 +243,7 @@ namespace osu.Game.Overlays
protected override void OnFocus(InputState state) protected override void OnFocus(InputState state)
{ {
//this is necessary as inputTextBox is masked away and therefore can't get focus :( //this is necessary as inputTextBox is masked away and therefore can't get focus :(
InputManager.ChangeFocus(inputTextBox); GetContainingInputManager().ChangeFocus(inputTextBox);
base.OnFocus(state); base.OnFocus(state);
} }

View File

@ -69,7 +69,7 @@ namespace osu.Game.Overlays
settingsSection.Bounding = true; settingsSection.Bounding = true;
this.FadeIn(transition_time, Easing.OutQuint); this.FadeIn(transition_time, Easing.OutQuint);
InputManager.ChangeFocus(settingsSection); GetContainingInputManager().ChangeFocus(settingsSection);
} }
protected override void PopOut() protected override void PopOut()

View File

@ -103,7 +103,7 @@ namespace osu.Game.Overlays.SearchableList
protected override void OnFocus(InputState state) protected override void OnFocus(InputState state)
{ {
InputManager.ChangeFocus(Filter.Search); GetContainingInputManager().ChangeFocus(Filter.Search);
} }
protected override void PopIn() protected override void PopIn()

View File

@ -153,7 +153,7 @@ namespace osu.Game.Overlays
searchTextBox.HoldFocus = false; searchTextBox.HoldFocus = false;
if (searchTextBox.HasFocus) if (searchTextBox.HasFocus)
InputManager.ChangeFocus(null); GetContainingInputManager().ChangeFocus(null);
} }
public override bool AcceptsFocus => true; public override bool AcceptsFocus => true;
@ -162,7 +162,7 @@ namespace osu.Game.Overlays
protected override void OnFocus(InputState state) protected override void OnFocus(InputState state)
{ {
InputManager.ChangeFocus(searchTextBox); GetContainingInputManager().ChangeFocus(searchTextBox);
base.OnFocus(state); base.OnFocus(state);
} }