// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Mods; namespace osu.Game.Overlays.Mods.Input { /// /// Static factory class for s. /// public static class ModHotkeyHandler { /// /// Creates an appropriate for the given . /// public static IModHotkeyHandler Create(ModType modType, ModSelectHotkeyStyle style) { switch (modType) { case ModType.DifficultyReduction: case ModType.DifficultyIncrease: case ModType.Automation: return style == ModSelectHotkeyStyle.Sequential ? (IModHotkeyHandler)SequentialModHotkeyHandler.Create(modType) : new ClassicModHotkeyHandler(); default: return new NoopModHotkeyHandler(); } } } }