From add9a7fa490efeab1f45b700a4cb9c3769fe6560 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 19 Oct 2009 20:45:27 +0000 Subject: [PATCH] Allow ',' in the watching menu to sort by the previous column. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@508 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- dgamelaunch.c | 4 ++++ examples/dgl_menu_watchmenu_help.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dgamelaunch.c b/dgamelaunch.c index b2dc69e..3183591 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -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; diff --git a/examples/dgl_menu_watchmenu_help.txt b/examples/dgl_menu_watchmenu_help.txt index 37ddfdd..23c5567 100644 --- a/examples/dgl_menu_watchmenu_help.txt +++ b/examples/dgl_menu_watchmenu_help.txt @@ -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.