mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Adapt signature change of event handlers
This commit is contained in:
@ -34,7 +34,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
{
|
||||
if (!state.Keyboard.ControlPressed && !state.Keyboard.ShiftPressed)
|
||||
var keyboard = e.CurrentState.Keyboard;
|
||||
if (!keyboard.ControlPressed && !keyboard.ShiftPressed)
|
||||
{
|
||||
switch (e.Key)
|
||||
{
|
||||
@ -56,7 +57,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
if (state.Keyboard.ShiftPressed)
|
||||
if (keyboard.ShiftPressed)
|
||||
{
|
||||
switch (e.Key)
|
||||
{
|
||||
|
Reference in New Issue
Block a user