[mythtv] [PATCH] Add keybindings for MythMusic

Eric Thelin eric at thelin.org
Sat Nov 15 22:06:33 EST 2003


I have been frustrated that I couldn't navigate through songs very well
from my remote so I added a few additional keybindings for keys that are
likely to be already bound to buttons on most/many remotes.  Basicly
these let you easily skip forward or reverse through a given song with
left and right and jump forward or revers for entire tracks from the
same buttons used for rewind or fast forward smoothly without stickykeys
selected in MythTV.

Index: mythmusic/playbackbox.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythmusic/mythmusic/playbackbox.cpp,v
retrieving revision 1.65
diff -u -b -B -r1.65 playbackbox.cpp
--- mythmusic/playbackbox.cpp   5 Nov 2003 21:29:53 -0000       1.65
+++ mythmusic/playbackbox.cpp   16 Nov 2003 02:59:45 -0000
@@ -192,6 +192,7 @@
     switch (e->key())
     {
         case Key_PageDown:
+        case Key_Period:
             if (next_button)
                 next_button->push();
             else
@@ -199,6 +200,7 @@
             handled = true;
             break;
         case Key_PageUp:
+        case Key_Comma:
             if (prev_button)
                 prev_button->push();
             else
@@ -206,6 +208,7 @@
             handled = true;
             break;
         case Key_F:
+        case Key_Right:
             if (ff_button)
                 ff_button->push();
             else
@@ -213,6 +216,7 @@
             handled = true;
             break;
         case Key_R:
+        case Key_Left:
             if (rew_button)
                 rew_button->push();


More information about the mythtv-dev mailing list