]> git.vomp.tv Git - vompclient.git/commitdiff
Old remote up/down behaviour fix
authorChris Tallon <chris@vomp.tv>
Mon, 2 Jun 2008 20:48:27 +0000 (20:48 +0000)
committerChris Tallon <chris@vomp.tv>
Mon, 2 Jun 2008 20:48:27 +0000 (20:48 +0000)
vvideolivetv.cc

index 8e6d4b402898958e4976b5ac5b0208969ac1c579..358b3cd1afc61ea28942bb5cfbedf5513c0cae82 100644 (file)
@@ -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);