]> skyeroc.xyz Git - dgamelaunch/commitdiff
Allow ',' in the watching menu to sort by the previous column.
authorPasi Kallinen <paxed@alt.org>
Mon, 19 Oct 2009 20:45:27 +0000 (20:45 +0000)
committerPasi Kallinen <paxed@alt.org>
Mon, 19 Oct 2009 20:45:27 +0000 (20:45 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@508 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c
examples/dgl_menu_watchmenu_help.txt

index b2dc69e6ae38132be6e40d8ccd98e0b09b5f3e32..31835919d1a967c85152821d738a07e6f58dba52 100644 (file)
@@ -562,6 +562,10 @@ inprogressmenu (int gameid)
            if (sortmode < (NUM_SORTMODES-1)) sortmode++; else sortmode = SORTMODE_NONE;
            break;
 
+       case ',':
+           if (sortmode > 0) sortmode--; else sortmode = (NUM_SORTMODES-1);
+           break;
+
        case 12: case 18: /* ^L, ^R */
          clear ();
          break;
index 37ddfdde8c69fabd0631ef5164a4834840b54550..23c5567ab7648a8db6bb42f77bc45bf224b9eab8 100644 (file)
@@ -4,7 +4,7 @@
  ----------------------
  ?        show this help.
  > <      next/previous page.
- .        change sorting method.
+ . ,      change sorting method.
  q Q      return to main menu.
  a-zA-Z   select a game to watch.
  *        start showing a randomly selected game.