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 @@ public GlobalActionContainer(OsuGameBase game)
new KeyBinding(InputKey.Enter, GlobalAction.Select),
new KeyBinding(InputKey.KeypadEnter, GlobalAction.Select),
new KeyBinding(InputKey.F1, GlobalAction.MusicPrev),
new KeyBinding(InputKey.F5, GlobalAction.MusicNext),
new KeyBinding(InputKey.F3, GlobalAction.MusicPlay),
new KeyBinding(InputKey.TrackPrevious, GlobalAction.MusicPrev),
new KeyBinding(InputKey.TrackNext, GlobalAction.MusicNext),
new KeyBinding(InputKey.PlayPause, GlobalAction.MusicPlay),
};
public IEnumerable<KeyBinding> InGameKeyBindings => new[]

View File

@ -565,7 +565,7 @@ public bool PlayTrack()
{
if (beatmap.Disabled) return false;
play();
togglePause();
return true;
}