mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use generic Enum methods
This commit is contained in:
@ -237,7 +237,7 @@ namespace osu.Game.Screens.Utility
|
||||
switch (e.Key)
|
||||
{
|
||||
case Key.Space:
|
||||
int availableModes = Enum.GetValues(typeof(LatencyVisualMode)).Length;
|
||||
int availableModes = Enum.GetValues<LatencyVisualMode>().Length;
|
||||
VisualMode.Value = (LatencyVisualMode)(((int)VisualMode.Value + 1) % availableModes);
|
||||
return true;
|
||||
|
||||
|
Reference in New Issue
Block a user