1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:17:51 +08:00

add inline comment for supposedly backwards ternary

This commit is contained in:
tsunyoku 2024-02-12 18:00:05 +00:00
parent 2a02566283
commit cc733ea809

View File

@ -191,6 +191,7 @@ namespace osu.Game.Rulesets.Osu.Mods
public override void HandleRelease(bool wasLeft)
{
// this intentionally releases right when `wasLeft` is true because `wasLeft` is set at point of press and not at point of release
Mod.osuInputManager.KeyBindingContainer.TriggerReleased(wasLeft ? OsuAction.RightButton : OsuAction.LeftButton);
}
}