mirror of
https://github.com/ppy/osu
synced 2025-01-20 04:50:50 +00:00
Apply input method signature refactorings
This commit is contained in:
parent
fc331e7752
commit
40f502c6d1
@ -216,12 +216,15 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnKeyUp(KeyUpEvent e)
|
protected override void OnKeyUp(KeyUpEvent e)
|
||||||
{
|
{
|
||||||
if (!HasFocus) return base.OnKeyUp(e);
|
if (!HasFocus)
|
||||||
|
{
|
||||||
|
base.OnKeyUp(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
finalise();
|
finalise();
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnJoystickPress(JoystickPressEvent e)
|
protected override bool OnJoystickPress(JoystickPressEvent e)
|
||||||
|
@ -201,8 +201,6 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnKeyUp(KeyUpEvent e) => false;
|
|
||||||
|
|
||||||
public bool OnPressed(PlatformAction action)
|
public bool OnPressed(PlatformAction action)
|
||||||
{
|
{
|
||||||
switch (action.ActionType)
|
switch (action.ActionType)
|
||||||
|
@ -27,10 +27,10 @@ namespace osu.Game.Screens.Play
|
|||||||
return base.OnKeyDown(e);
|
return base.OnKeyDown(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnKeyUp(KeyUpEvent e)
|
protected override void OnKeyUp(KeyUpEvent e)
|
||||||
{
|
{
|
||||||
if (e.Key == Key) IsLit = false;
|
if (e.Key == Key) IsLit = false;
|
||||||
return base.OnKeyUp(e);
|
base.OnKeyUp(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,11 +44,11 @@ namespace osu.Game.Screens.Select
|
|||||||
return base.OnKeyDown(e);
|
return base.OnKeyDown(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnKeyUp(KeyUpEvent e)
|
protected override void OnKeyUp(KeyUpEvent e)
|
||||||
{
|
{
|
||||||
secondaryActive = e.ShiftPressed;
|
secondaryActive = e.ShiftPressed;
|
||||||
updateText();
|
updateText();
|
||||||
return base.OnKeyUp(e);
|
base.OnKeyUp(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateText()
|
private void updateText()
|
||||||
|
Loading…
Reference in New Issue
Block a user