2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-08-10 17:28:43 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-12-06 22:03:31 +08:00
|
|
|
|
using System.Collections.Generic;
|
2017-08-14 19:19:25 +08:00
|
|
|
|
using System.ComponentModel;
|
2017-08-11 15:11:46 +08:00
|
|
|
|
using osu.Framework.Input.Bindings;
|
2017-08-21 11:31:21 +08:00
|
|
|
|
using osu.Game.Rulesets.UI;
|
2017-08-10 17:28:43 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu
|
|
|
|
|
{
|
2017-08-21 11:31:21 +08:00
|
|
|
|
public class OsuInputManager : RulesetInputManager<OsuAction>
|
2017-08-10 17:28:43 +08:00
|
|
|
|
{
|
2017-12-06 22:03:31 +08:00
|
|
|
|
public IEnumerable<OsuAction> PressedActions => KeyBindingContainer.PressedActions;
|
|
|
|
|
|
2017-08-17 16:47:44 +08:00
|
|
|
|
public OsuInputManager(RulesetInfo ruleset) : base(ruleset, 0, SimultaneousBindingMode.Unique)
|
2017-08-10 17:28:43 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum OsuAction
|
|
|
|
|
{
|
2017-08-14 19:19:25 +08:00
|
|
|
|
[Description("Left Button")]
|
2017-08-10 17:28:43 +08:00
|
|
|
|
LeftButton,
|
2017-08-14 19:19:25 +08:00
|
|
|
|
[Description("Right Button")]
|
2017-08-10 17:28:43 +08:00
|
|
|
|
RightButton
|
|
|
|
|
}
|
|
|
|
|
}
|