Handle some additional keys in the watching-menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@557 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
e80d1c338b
commit
3f3e9c3277
3
TODO
3
TODO
|
@ -1,3 +1,6 @@
|
|||
|
||||
-move the games[] array into shmem?
|
||||
|
||||
-$MTIME(filename)
|
||||
|
||||
< Napkin> I'd suggest the default of DGL_MAILMSGLEN to be less
|
||||
|
|
|
@ -777,6 +777,18 @@ inprogressmenu (int gameid)
|
|||
|
||||
switch ((menuchoice = dgl_getch ()))
|
||||
{
|
||||
case KEY_DOWN:
|
||||
if (selected != -1) {
|
||||
selected++;
|
||||
if (selected >= len) selected = 0;
|
||||
}
|
||||
break;
|
||||
case KEY_UP:
|
||||
if (selected != -1) {
|
||||
if (selected == 0) selected = len;
|
||||
selected--;
|
||||
}
|
||||
break;
|
||||
case '*':
|
||||
if (len > 0) {
|
||||
idx = random() % len;
|
||||
|
@ -816,10 +828,11 @@ inprogressmenu (int gameid)
|
|||
}
|
||||
}
|
||||
break;
|
||||
case KEY_NPAGE:
|
||||
case '>':
|
||||
if ((offset + max_height) < len) offset += max_height;
|
||||
break;
|
||||
|
||||
case KEY_PPAGE:
|
||||
case '<':
|
||||
if ((offset - max_height) < 0)
|
||||
offset = 0;
|
||||
|
@ -835,11 +848,11 @@ inprogressmenu (int gameid)
|
|||
shmdt(shm_dg_data);
|
||||
#endif
|
||||
return;
|
||||
|
||||
case KEY_RIGHT:
|
||||
case '.':
|
||||
if (sortmode < (NUM_SORTMODES-1)) sortmode++; else sortmode = SORTMODE_USERNAME;
|
||||
break;
|
||||
|
||||
case KEY_LEFT:
|
||||
case ',':
|
||||
if (sortmode > SORTMODE_USERNAME) sortmode--; else sortmode = (NUM_SORTMODES-1);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue