mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Ensure overlay is always shown when movement is detected on mouse or keyboard
This commit is contained in:
parent
888d8b2817
commit
2709a4d398
@ -131,6 +131,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
|
|
||||||
protected override bool OnMouseMove(MouseMoveEvent e)
|
protected override bool OnMouseMove(MouseMoveEvent e)
|
||||||
{
|
{
|
||||||
|
Show();
|
||||||
|
|
||||||
TouchCatchAction touchCatchAction = getTouchCatchActionFromInput(e.ScreenSpaceMousePosition);
|
TouchCatchAction touchCatchAction = getTouchCatchActionFromInput(e.ScreenSpaceMousePosition);
|
||||||
|
|
||||||
// Loop through the buttons to avoid keeping a button pressed if both mouse buttons are pressed.
|
// Loop through the buttons to avoid keeping a button pressed if both mouse buttons are pressed.
|
||||||
@ -143,6 +145,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
|
|
||||||
protected override void OnTouchMove(TouchMoveEvent e)
|
protected override void OnTouchMove(TouchMoveEvent e)
|
||||||
{
|
{
|
||||||
|
Show();
|
||||||
|
|
||||||
trackedActions[e.Touch.Source] = getTouchCatchActionFromInput(e.ScreenSpaceTouch.Position);
|
trackedActions[e.Touch.Source] = getTouchCatchActionFromInput(e.ScreenSpaceTouch.Position);
|
||||||
calculateActiveKeys();
|
calculateActiveKeys();
|
||||||
|
|
||||||
@ -186,8 +190,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
if (catchAction == TouchCatchAction.None)
|
if (catchAction == TouchCatchAction.None)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Show();
|
|
||||||
|
|
||||||
trackedActions[source] = catchAction;
|
trackedActions[source] = catchAction;
|
||||||
|
|
||||||
calculateActiveKeys();
|
calculateActiveKeys();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user