ActionMapping doesn't support concurrent actions by default

But can when required. Also supports key combination bindings now.
This commit is contained in:
Dean Herbert
2017-08-10 16:08:43 +09:00
parent 720bd38d8e
commit 30bd1d70b5
7 changed files with 167 additions and 34 deletions

View File

@ -9,11 +9,11 @@ namespace osu.Game.Rulesets.Catch
{
public class CatchInputManager : ActionMappingInputManager<CatchAction>
{
public CatchInputManager(RulesetInfo ruleset) : base(ruleset)
public CatchInputManager(RulesetInfo ruleset) : base(ruleset, allowConcurrentActions: true)
{
}
protected override IDictionary<Key, CatchAction> CreateDefaultMappings() => new Dictionary<Key, CatchAction>
protected override IDictionary<KeyCombination, CatchAction> CreateDefaultMappings() => new Dictionary<KeyCombination, CatchAction>
{
{ Key.Z, CatchAction.MoveLeft },
{ Key.Left, CatchAction.MoveLeft },