2019-01-24 08:43:03 +00: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 09:19:50 +00:00
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
using System.ComponentModel;
|
2022-01-31 07:47:20 +00:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-08-21 03:31:21 +00:00
|
|
|
|
using osu.Framework.Input.Bindings;
|
|
|
|
|
using osu.Game.Rulesets.UI;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-08-21 03:31:21 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Mania
|
|
|
|
|
{
|
2022-01-31 07:47:20 +00:00
|
|
|
|
[Cached] // Used for touch input, see ColumnTouchInputArea.
|
2017-08-21 03:31:21 +00:00
|
|
|
|
public partial class ManiaInputManager : RulesetInputManager<ManiaAction>
|
|
|
|
|
{
|
2017-08-23 03:49:50 +00:00
|
|
|
|
public ManiaInputManager(RulesetInfo ruleset, int variant)
|
|
|
|
|
: base(ruleset, variant, SimultaneousBindingMode.Unique)
|
2017-08-21 03:31:21 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-08-21 03:31:21 +00:00
|
|
|
|
public enum ManiaAction
|
|
|
|
|
{
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Special 1")]
|
2018-01-15 08:58:04 +00:00
|
|
|
|
Special1 = 1,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Special 2")]
|
2018-01-23 01:03:34 +00:00
|
|
|
|
Special2,
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2018-01-23 01:51:01 +00:00
|
|
|
|
// This offsets the start value of normal keys in-case we add more special keys
|
|
|
|
|
// above at a later time, without breaking replays/configs.
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 1")]
|
2018-01-23 01:51:01 +00:00
|
|
|
|
Key1 = 10,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 2")]
|
|
|
|
|
Key2,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 3")]
|
|
|
|
|
Key3,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 4")]
|
|
|
|
|
Key4,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 5")]
|
|
|
|
|
Key5,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 6")]
|
|
|
|
|
Key6,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 7")]
|
|
|
|
|
Key7,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 8")]
|
|
|
|
|
Key8,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2017-08-23 03:49:50 +00:00
|
|
|
|
[Description("Key 9")]
|
2018-01-15 08:43:45 +00:00
|
|
|
|
Key9,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 10")]
|
|
|
|
|
Key10,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 11")]
|
|
|
|
|
Key11,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 12")]
|
|
|
|
|
Key12,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 13")]
|
|
|
|
|
Key13,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 14")]
|
|
|
|
|
Key14,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 15")]
|
|
|
|
|
Key15,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 16")]
|
|
|
|
|
Key16,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 17")]
|
|
|
|
|
Key17,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
|
2018-01-15 08:43:45 +00:00
|
|
|
|
[Description("Key 18")]
|
|
|
|
|
Key18,
|
2020-04-20 12:28:36 +00:00
|
|
|
|
|
|
|
|
|
[Description("Key 19")]
|
|
|
|
|
Key19,
|
|
|
|
|
|
|
|
|
|
[Description("Key 20")]
|
|
|
|
|
Key20,
|
2017-08-21 03:31:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|