mirror of
https://github.com/ppy/osu
synced 2025-01-30 01:42:54 +00:00
Improve input detection to not make cursor flicker on combined input
This commit is contained in:
parent
4bf4938b72
commit
39650717ea
@ -277,14 +277,19 @@ namespace osu.Game.Graphics.Cursor
|
||||
{
|
||||
switch (e)
|
||||
{
|
||||
case MouseEvent:
|
||||
case MouseDownEvent:
|
||||
case MouseMoveEvent:
|
||||
lastInputWasMouseSource.Value = true;
|
||||
return false;
|
||||
|
||||
default:
|
||||
case KeyDownEvent keyDown when !keyDown.Repeat:
|
||||
case JoystickPressEvent:
|
||||
case MidiDownEvent:
|
||||
lastInputWasMouseSource.Value = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user