mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Adapt signature change of event handlers
This commit is contained in:
@ -159,7 +159,7 @@ namespace osu.Game.Overlays.Mods
|
||||
scaleContainer.ScaleTo(1, 500, Easing.OutElastic);
|
||||
|
||||
// only trigger the event if we are inside the area of the button
|
||||
if (Contains(ToScreenSpace(state.Mouse.Position - Position)))
|
||||
if (Contains(e.ScreenSpaceMousePosition))
|
||||
{
|
||||
switch (e.Button)
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
var index = Array.IndexOf(ToggleKeys, e.Key);
|
||||
if (index > -1 && index < buttons.Length)
|
||||
buttons[index].SelectNext(state.Keyboard.ShiftPressed ? -1 : 1);
|
||||
buttons[index].SelectNext(e.CurrentState.Keyboard.ShiftPressed ? -1 : 1);
|
||||
}
|
||||
|
||||
return base.OnKeyDown(e);
|
||||
|
Reference in New Issue
Block a user