2019-01-24 17:43:03 +09:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2022-06-17 16:37:17 +09:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2017-08-10 17:14:30 +09:00
|
|
|
|
using System.ComponentModel;
|
2022-08-13 18:02:29 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-08-11 16:11:46 +09:00
|
|
|
|
using osu.Framework.Input.Bindings;
|
2017-08-21 12:31:21 +09:00
|
|
|
|
using osu.Game.Rulesets.UI;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2017-08-09 11:50:34 +09:00
|
|
|
|
namespace osu.Game.Rulesets.Catch
|
|
|
|
|
{
|
2022-08-13 18:02:29 +08:00
|
|
|
|
[Cached]
|
2017-08-21 12:31:21 +09:00
|
|
|
|
public class CatchInputManager : RulesetInputManager<CatchAction>
|
2017-08-09 11:50:34 +09:00
|
|
|
|
{
|
2017-08-13 10:36:57 +09:00
|
|
|
|
public CatchInputManager(RulesetInfo ruleset)
|
2017-08-17 17:47:44 +09:00
|
|
|
|
: base(ruleset, 0, SimultaneousBindingMode.Unique)
|
2017-08-09 11:50:34 +09:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2017-08-09 11:50:34 +09:00
|
|
|
|
public enum CatchAction
|
|
|
|
|
{
|
2017-08-10 17:14:30 +09:00
|
|
|
|
[Description("Move left")]
|
2017-08-09 11:50:34 +09:00
|
|
|
|
MoveLeft,
|
2019-02-28 13:31:40 +09:00
|
|
|
|
|
2017-08-10 17:14:30 +09:00
|
|
|
|
[Description("Move right")]
|
2017-08-09 11:50:34 +09:00
|
|
|
|
MoveRight,
|
2019-02-28 13:31:40 +09:00
|
|
|
|
|
2017-08-10 17:14:30 +09:00
|
|
|
|
[Description("Engage dash")]
|
2018-01-12 18:35:28 +09:00
|
|
|
|
Dash,
|
2017-08-09 11:50:34 +09:00
|
|
|
|
}
|
|
|
|
|
}
|