Added MusicControllerLogic, now we can handle audio buttons anywhere in the game.

This commit is contained in:
szabkel
2016-04-16 22:40:53 +02:00
parent 189b94f3a0
commit 1b4a42d3d9
12 changed files with 127 additions and 1 deletions

View File

@@ -284,6 +284,11 @@ namespace OpenRA
public Hotkey ReplaySpeedFastKey = new Hotkey(Keycode.F7, Modifiers.None);
public Hotkey ReplaySpeedMaxKey = new Hotkey(Keycode.F8, Modifiers.None);
public Hotkey NextTrack = new Hotkey(Keycode.AUDIONEXT, Modifiers.None);
public Hotkey PreviousTrack = new Hotkey(Keycode.AUDIOPREV, Modifiers.None);
public Hotkey StopMusic = new Hotkey(Keycode.AUDIOSTOP, Modifiers.None);
public Hotkey PauseMusic = new Hotkey(Keycode.AUDIOPLAY, Modifiers.None);
static readonly Func<KeySettings, Hotkey>[] ProductionKeys = GetKeys(24, "Production");
static readonly Func<KeySettings, Hotkey>[] SupportPowerKeys = GetKeys(6, "SupportPower");