1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:23:22 +08:00

Add global actions for game-wide music jukebox manipulation

This commit is contained in:
Lucas A 2019-07-05 16:14:04 +02:00
parent df75f9d312
commit 70372dd03d

View File

@ -38,6 +38,10 @@ namespace osu.Game.Input.Bindings
new KeyBinding(InputKey.MouseWheelDown, GlobalAction.DecreaseVolume), new KeyBinding(InputKey.MouseWheelDown, GlobalAction.DecreaseVolume),
new KeyBinding(InputKey.F4, GlobalAction.ToggleMute), new KeyBinding(InputKey.F4, GlobalAction.ToggleMute),
new KeyBinding(InputKey.F5, GlobalAction.MusicPrev),
new KeyBinding(InputKey.F6, GlobalAction.MusicNext),
new KeyBinding(InputKey.X, GlobalAction.MusicPlay),
new KeyBinding(InputKey.Escape, GlobalAction.Back), new KeyBinding(InputKey.Escape, GlobalAction.Back),
new KeyBinding(InputKey.MouseButton1, GlobalAction.Back), new KeyBinding(InputKey.MouseButton1, GlobalAction.Back),
@ -88,6 +92,16 @@ namespace osu.Game.Input.Bindings
[Description("Toggle mute")] [Description("Toggle mute")]
ToggleMute, ToggleMute,
// Game-wide beatmap jukebox keybindings
[Description("Jukebox next track")]
MusicNext,
[Description("Jukebox previous track")]
MusicPrev,
[Description("Jukebox play / pause current track")]
MusicPlay,
// In-Game Keybindings // In-Game Keybindings
[Description("Skip cutscene")] [Description("Skip cutscene")]
SkipCutscene, SkipCutscene,