mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fix mode cycling and add test coverage
This commit is contained in:
@ -241,7 +241,8 @@ namespace osu.Game.Screens.Utility
|
||||
switch (e.Key)
|
||||
{
|
||||
case Key.Space:
|
||||
VisualMode.Value = (LatencyVisualMode)(((int)VisualMode.Value + 1) % 3);
|
||||
int availableModes = Enum.GetValues(typeof(LatencyVisualMode)).Length;
|
||||
VisualMode.Value = (LatencyVisualMode)(((int)VisualMode.Value + 1) % availableModes);
|
||||
return true;
|
||||
|
||||
case Key.Tab:
|
||||
|
Reference in New Issue
Block a user