Merge pull request #22381 from Susko3/fix-osu-touch-with-screen-scaling

Fix touches not being handled outside `OsuTouchInputMapper` when using screen scaling
This commit is contained in:
Dean Herbert 2023-01-24 11:07:11 +09:00 committed by GitHub
commit bc717b1f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@
using osu.Framework.Input.Events;
using osu.Framework.Input.StateChanges;
using osu.Game.Configuration;
using osuTK;
namespace osu.Game.Rulesets.Osu.UI
{
@ -38,6 +39,9 @@ private void load(OsuConfigManager config)
mouseDisabled = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
}
// Required to handle touches outside of the playfield when screen scaling is enabled.
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
protected override void OnTouchMove(TouchMoveEvent e)
{
base.OnTouchMove(e);