From 2fddda71955add9ad349355118b002c69b1ee892 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Mon, 2 Jun 2008 20:48:27 +0000 Subject: [PATCH] Old remote up/down behaviour fix --- vvideolivetv.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vvideolivetv.cc b/vvideolivetv.cc index 8e6d4b4..358b3cd 100644 --- a/vvideolivetv.cc +++ b/vvideolivetv.cc @@ -308,12 +308,24 @@ int VVideoLiveTV::handleCommand(int command) return 2; } case Remote::DF_UP: + { + // Old remote, decide what to do based on whether the osd is showing + if (osd.getVisible()) doUpDown(false); + else doChanUpDown(UP); + return 2; + } + case Remote::DF_DOWN: + { + // Old remote, decide what to do based on whether the osd is showing + if (osd.getVisible()) doUpDown(true); + else doChanUpDown(DOWN); + return 2; + } case Remote::CHANNELUP: { doChanUpDown(UP); return 2; } - case Remote::DF_DOWN: case Remote::CHANNELDOWN: { doChanUpDown(DOWN); -- 2.39.5