mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Encapsulate mod hotkey selection logic in strategy pattern
This commit is contained in:
17
osu.Game/Overlays/Mods/Input/NoopModHotkeyHandler.cs
Normal file
17
osu.Game/Overlays/Mods/Input/NoopModHotkeyHandler.cs
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Overlays.Mods.Input
|
||||
{
|
||||
/// <summary>
|
||||
/// A no-op implementation of <see cref="IModHotkeyHandler"/>.
|
||||
/// Used when a column is not handling any hotkeys at all.
|
||||
/// </summary>
|
||||
public class NoopModHotkeyHandler : IModHotkeyHandler
|
||||
{
|
||||
public bool HandleHotkeyPressed(Key hotkey, IEnumerable<ModState> availableMods) => false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user