1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:33:21 +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);
}
}