mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Moved key press select mods to ModSection
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user