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

Use media keys as default bindings for jukebox.

This commit is contained in:
Lucas A 2019-08-10 16:33:16 +02:00
parent fdf76be967
commit 7825923cb6
2 changed files with 4 additions and 4 deletions

View File

@ -45,9 +45,9 @@ namespace osu.Game.Input.Bindings
new KeyBinding(InputKey.Enter, GlobalAction.Select), new KeyBinding(InputKey.Enter, GlobalAction.Select),
new KeyBinding(InputKey.KeypadEnter, GlobalAction.Select), new KeyBinding(InputKey.KeypadEnter, GlobalAction.Select),
new KeyBinding(InputKey.F1, GlobalAction.MusicPrev), new KeyBinding(InputKey.TrackPrevious, GlobalAction.MusicPrev),
new KeyBinding(InputKey.F5, GlobalAction.MusicNext), new KeyBinding(InputKey.TrackNext, GlobalAction.MusicNext),
new KeyBinding(InputKey.F3, GlobalAction.MusicPlay), new KeyBinding(InputKey.PlayPause, GlobalAction.MusicPlay),
}; };
public IEnumerable<KeyBinding> InGameKeyBindings => new[] public IEnumerable<KeyBinding> InGameKeyBindings => new[]

View File

@ -565,7 +565,7 @@ namespace osu.Game.Overlays
{ {
if (beatmap.Disabled) return false; if (beatmap.Disabled) return false;
play(); togglePause();
return true; return true;
} }