Moved key press select mods to ModSection

This commit is contained in:
DrabWeb
2017-03-02 01:24:32 -04:00
parent 1eee587c18
commit 37ed1b3d09
5 changed files with 22 additions and 16 deletions

View File

@ -30,7 +30,6 @@ namespace osu.Game.Overlays.Mods
private SampleChannel sampleOn, sampleOff;
public Action<Mod> Action; // Passed the selected mod or null if none
public Key ToggleKey;
private int _selectedMod = -1;
private int selectedMod
@ -235,17 +234,6 @@ namespace osu.Game.Overlays.Mods
}
}
protected override bool OnKeyDown(Framework.Input.InputState state, KeyDownEventArgs args)
{
if (args.Key == ToggleKey)
{
SelectNext();
return true;
}
return base.OnKeyDown(state, args);
}
public ModButton(Mod m)
{
Direction = FlowDirections.Vertical;