mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Forward entire event to IModHotkeyHandler
Required for shift handling in the classic implementation.
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osuTK.Input;
|
||||
|
||||
@ -41,9 +42,9 @@ namespace osu.Game.Overlays.Mods.Input
|
||||
toggleKeys = keys;
|
||||
}
|
||||
|
||||
public bool HandleHotkeyPressed(Key hotkey, IEnumerable<ModState> availableMods)
|
||||
public bool HandleHotkeyPressed(KeyDownEvent e, IEnumerable<ModState> availableMods)
|
||||
{
|
||||
int index = Array.IndexOf(toggleKeys, hotkey);
|
||||
int index = Array.IndexOf(toggleKeys, e.Key);
|
||||
if (index < 0)
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user