From 00d48aa64b08e26450e3201e2ecaaaf501655c24 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 27 Sep 2013 18:02:26 +0200 Subject: [PATCH] eventlist: use left/right to switch channels Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f468f9c1764a7df47760b6cac93130da3a231842 Author: vanhofen Date: 2013-09-27 (Fri, 27 Sep 2013) Origin message was: ------------------ - eventlist: use left/right to switch channels --- src/gui/eventlist.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index c5834508a..cf3c65b45 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -544,10 +544,11 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c loop = false; } } - else if ( msg==CRCInput::RC_left || msg==CRCInput::RC_red ){ + else if ( msg==CRCInput::RC_red ){ loop= false; } - else if ( msg==CRCInput::RC_rewind || msg==CRCInput::RC_forward) { + else if ( msg==CRCInput::RC_left || msg==CRCInput::RC_right || msg==CRCInput::RC_rewind || msg==CRCInput::RC_forward ) { + // maybe remove RC_rewind and RC_forward in the future? t_bouquet_id current_bouquet_id= bouquetList->getActiveBouquetNumber(); t_channel_id channel_id_tmp, _channel_id = channel_id; @@ -560,7 +561,7 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c { channel_id_tmp = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(channel)->channel_id; if(channel_id_tmp == channel_id){ - if ( msg==CRCInput::RC_forward) { + if ( msg==CRCInput::RC_right || msg==CRCInput::RC_forward ) { channel = (channel+1) %channel_nr; }else { //RC_rewind channel = (channel == 0) ? channel_nr -1 : channel - 1; @@ -606,7 +607,7 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c eplus.exec(NULL, ""); loop = false; } - else if (msg==CRCInput::RC_help || msg==CRCInput::RC_right || msg==CRCInput::RC_ok || msg==CRCInput::RC_info) + else if (msg==CRCInput::RC_help || msg==CRCInput::RC_ok || msg==CRCInput::RC_info) { if ( evtlist[selected].eventID != 0 ) {