Adapt signature change of event handlers

This commit is contained in:
ekrctb
2018-09-19 20:52:57 +09:00
parent 99fc04c8af
commit 50091252e2
40 changed files with 94 additions and 103 deletions

View File

@ -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)
{

View File

@ -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);