mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Remove unnecessary touch interception from OsuInputManager
This commit is contained in:
parent
24a626a9cd
commit
00996c9f47
@ -60,19 +60,6 @@ namespace osu.Game.Rulesets.Osu
|
|||||||
return base.Handle(e);
|
return base.Handle(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool HandleMouseTouchStateChange(TouchStateChangeEvent e)
|
|
||||||
{
|
|
||||||
if (!AllowUserCursorMovement)
|
|
||||||
{
|
|
||||||
// Still allow for forwarding of the "touch" part, but replace the positional data with that of the mouse.
|
|
||||||
// Primarily relied upon by the "autopilot" osu! mod.
|
|
||||||
var touch = new Touch(e.Touch.Source, CurrentState.Mouse.Position);
|
|
||||||
e = new TouchStateChangeEvent(e.State, e.Input, touch, e.IsActive, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
return base.HandleMouseTouchStateChange(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
private partial class OsuKeyBindingContainer : RulesetKeyBindingContainer
|
private partial class OsuKeyBindingContainer : RulesetKeyBindingContainer
|
||||||
{
|
{
|
||||||
private bool allowGameplayInputs = true;
|
private bool allowGameplayInputs = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user