Added tests for new Taiko touch control schemes

This commit is contained in:
OpenSauce
2023-01-11 12:04:52 +00:00
parent d2247f704d
commit 32d1d5a34a
2 changed files with 28 additions and 22 deletions

View File

@ -24,6 +24,7 @@ namespace osu.Game.Rulesets.Taiko.UI
/// </summary>
public partial class DrumTouchInputArea : VisibilityContainer
{
public TaikoTouchControlScheme? ForceControlScheme { get; set; }
// visibility state affects our child. we always want to handle input.
public override bool PropagatePositionalInputSubTree => true;
public override bool PropagateNonPositionalInputSubTree => true;
@ -55,7 +56,10 @@ namespace osu.Game.Rulesets.Taiko.UI
const float centre_region = 0.80f;
config.BindWith(TaikoRulesetSetting.TouchControlScheme, configTouchControlScheme);
if (ForceControlScheme == null)
config.BindWith(TaikoRulesetSetting.TouchControlScheme, configTouchControlScheme);
else
configTouchControlScheme.Value = (TaikoTouchControlScheme)ForceControlScheme;
Children = new Drawable[]
{