From 847ca4193e3fbc5b27285979888ab364bbf1792e Mon Sep 17 00:00:00 2001 From: Adam Simpkins Date: Wed, 9 Jan 2013 11:52:01 -0800 Subject: Add play and pause commands Add commands that always play and always pause, in addition to the current toggle pause command. Closes #342. --- src/ui_dispatch.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/ui_dispatch.h') diff --git a/src/ui_dispatch.h b/src/ui_dispatch.h index 9d87659..6b96ae3 100644 --- a/src/ui_dispatch.h +++ b/src/ui_dispatch.h @@ -1,5 +1,5 @@ /* -Copyright (c) 2010-2012 +Copyright (c) 2010-2013 Lars-Dominik Braun Permission is hereby granted, free of charge, to any person obtaining a copy @@ -71,8 +71,8 @@ static const BarUiDispatchAction_t dispatchActions[BAR_KS_COUNT] = { "act_addshared"}, {'n', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActSkipSong, "next song", "act_songnext"}, - {'p', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, "pause/continue", - "act_songpause"}, + {'p', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActTogglePause, "pause/resume playback", + "act_songpausetoggle"}, {'q', BAR_DC_GLOBAL, BarUiActQuit, "quit", "act_quit"}, {'r', BAR_DC_STATION, BarUiActRenameStation, "rename station", "act_stationrename"}, @@ -93,10 +93,14 @@ static const BarUiDispatchAction_t dispatchActions[BAR_KS_COUNT] = { "act_volup"}, {'=', BAR_DC_STATION, BarUiActManageStation, "delete seeds/feedback", "act_managestation"}, - {' ', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, NULL, - "act_songpause2"}, + {' ', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActTogglePause, NULL, + "act_songpausetoggle2"}, {'v', BAR_DC_SONG, BarUiActCreateStationFromSong, "create new station from song or artist", "act_stationcreatefromsong"}, + {'P', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPlay, "resume playback", + "act_songplay"}, + {'S', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, "pause playback", + "act_songpause"}, }; #include -- cgit v1.2.3