mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
add inline comment for supposedly backwards ternary
This commit is contained in:
parent
2a02566283
commit
cc733ea809
@ -191,6 +191,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
public override void HandleRelease(bool wasLeft)
|
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);
|
Mod.osuInputManager.KeyBindingContainer.TriggerReleased(wasLeft ? OsuAction.RightButton : OsuAction.LeftButton);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user