Rename OsuAction to GlobalAction

This commit is contained in:
Dean Herbert
2017-08-10 17:22:08 +09:00
parent 6ba5bdf1e6
commit c82db54fb5
4 changed files with 18 additions and 18 deletions

View File

@ -5,7 +5,7 @@ using System.ComponentModel;
namespace osu.Game.Input
{
public enum OsuAction
public enum GlobalAction
{
[Description("Toggle chat overlay")]
ToggleChat,

View File

@ -6,16 +6,16 @@ using System.Collections.Generic;
namespace osu.Game.Input
{
public class GlobalActionMappingInputManager : ActionMappingInputManager<OsuAction>
public class GlobalActionMappingInputManager : ActionMappingInputManager<GlobalAction>
{
protected override IDictionary<KeyCombination, OsuAction> CreateDefaultMappings() => new Dictionary<KeyCombination, OsuAction>
protected override IDictionary<KeyCombination, GlobalAction> CreateDefaultMappings() => new Dictionary<KeyCombination, GlobalAction>
{
{ Key.F8, OsuAction.ToggleChat },
{ Key.F9, OsuAction.ToggleSocial },
{ new[] { Key.LControl, Key.LAlt, Key.R }, OsuAction.ResetInputSettings },
{ new[] { Key.LControl, Key.T }, OsuAction.ToggleToolbar },
{ new[] { Key.LControl, Key.O }, OsuAction.ToggleSettings },
{ new[] { Key.LControl, Key.D }, OsuAction.ToggleDirect },
{ Key.F8, GlobalAction.ToggleChat },
{ Key.F9, GlobalAction.ToggleSocial },
{ new[] { Key.LControl, Key.LAlt, Key.R }, GlobalAction.ResetInputSettings },
{ new[] { Key.LControl, Key.T }, GlobalAction.ToggleToolbar },
{ new[] { Key.LControl, Key.O }, GlobalAction.ToggleSettings },
{ new[] { Key.LControl, Key.D }, GlobalAction.ToggleDirect },
};
}
}