mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 21:27:22 +09:00
Only handle LeftButton
and RightButton
actions
There are definitely going to be other actions used in the future, which would immediately cause this mod to fail. Limiting handling to left/right buttons only is the correct way forward.
This commit is contained in:
parent
fed63abd83
commit
c7a192cc5f
@ -60,9 +60,20 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
if (!introEnded)
|
if (!introEnded)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
switch (action)
|
||||||
|
{
|
||||||
|
case OsuAction.LeftButton:
|
||||||
|
case OsuAction.RightButton:
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Any action which is not left or right button should be ignored.
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (lastActionPressed != action)
|
if (lastActionPressed != action)
|
||||||
{
|
{
|
||||||
// User alternated correctly
|
// User alternated correctly.
|
||||||
lastActionPressed = action;
|
lastActionPressed = action;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user