2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-08-21 11:31:21 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-08-23 11:49:50 +08:00
|
|
|
|
using System.ComponentModel;
|
2017-08-21 11:31:21 +08:00
|
|
|
|
using osu.Framework.Input.Bindings;
|
|
|
|
|
using osu.Game.Rulesets.UI;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania
|
|
|
|
|
{
|
|
|
|
|
public class ManiaInputManager : RulesetInputManager<ManiaAction>
|
|
|
|
|
{
|
2017-08-23 11:49:50 +08:00
|
|
|
|
public ManiaInputManager(RulesetInfo ruleset, int variant)
|
|
|
|
|
: base(ruleset, variant, SimultaneousBindingMode.Unique)
|
2017-08-21 11:31:21 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ManiaAction
|
|
|
|
|
{
|
2018-01-15 16:43:45 +08:00
|
|
|
|
[Description("Special 1")]
|
2018-01-15 16:58:04 +08:00
|
|
|
|
Special1 = 1,
|
2018-01-15 16:43:45 +08:00
|
|
|
|
[Description("Special 2")]
|
2018-01-23 09:03:34 +08:00
|
|
|
|
Special2,
|
2018-01-15 14:50:57 +08:00
|
|
|
|
|
2018-01-23 09:03:34 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// This offsets the start value of normal keys in-case we add more special keys
|
|
|
|
|
/// above at a later time, without breaking replays/configs.
|
|
|
|
|
/// </summary>
|
2017-08-23 11:49:50 +08:00
|
|
|
|
[Description("Key 1")]
|
2018-01-15 14:50:43 +08:00
|
|
|
|
Key1 = 1000,
|
2017-08-23 11:49:50 +08:00
|
|
|
|
[Description("Key 2")]
|
|
|
|
|
Key2,
|
|
|
|
|
[Description("Key 3")]
|
|
|
|
|
Key3,
|
|
|
|
|
[Description("Key 4")]
|
|
|
|
|
Key4,
|
|
|
|
|
[Description("Key 5")]
|
|
|
|
|
Key5,
|
|
|
|
|
[Description("Key 6")]
|
|
|
|
|
Key6,
|
|
|
|
|
[Description("Key 7")]
|
|
|
|
|
Key7,
|
|
|
|
|
[Description("Key 8")]
|
|
|
|
|
Key8,
|
|
|
|
|
[Description("Key 9")]
|
2018-01-15 16:43:45 +08:00
|
|
|
|
Key9,
|
|
|
|
|
[Description("Key 10")]
|
|
|
|
|
Key10,
|
|
|
|
|
[Description("Key 11")]
|
|
|
|
|
Key11,
|
|
|
|
|
[Description("Key 12")]
|
|
|
|
|
Key12,
|
|
|
|
|
[Description("Key 13")]
|
|
|
|
|
Key13,
|
|
|
|
|
[Description("Key 14")]
|
|
|
|
|
Key14,
|
|
|
|
|
[Description("Key 15")]
|
|
|
|
|
Key15,
|
|
|
|
|
[Description("Key 16")]
|
|
|
|
|
Key16,
|
|
|
|
|
[Description("Key 17")]
|
|
|
|
|
Key17,
|
|
|
|
|
[Description("Key 18")]
|
|
|
|
|
Key18,
|
2017-08-21 11:31:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|