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)
|
-$MTIME(filename)
|
||||||
|
|
||||||
< Napkin> I'd suggest the default of DGL_MAILMSGLEN to be less
|
< Napkin> I'd suggest the default of DGL_MAILMSGLEN to be less
|
||||||
|
|
|
@ -777,6 +777,18 @@ inprogressmenu (int gameid)
|
||||||
|
|
||||||
switch ((menuchoice = dgl_getch ()))
|
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 '*':
|
case '*':
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
idx = random() % len;
|
idx = random() % len;
|
||||||
|
@ -816,10 +828,11 @@ inprogressmenu (int gameid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case KEY_NPAGE:
|
||||||
case '>':
|
case '>':
|
||||||
if ((offset + max_height) < len) offset += max_height;
|
if ((offset + max_height) < len) offset += max_height;
|
||||||
break;
|
break;
|
||||||
|
case KEY_PPAGE:
|
||||||
case '<':
|
case '<':
|
||||||
if ((offset - max_height) < 0)
|
if ((offset - max_height) < 0)
|
||||||
offset = 0;
|
offset = 0;
|
||||||
|
@ -835,11 +848,11 @@ inprogressmenu (int gameid)
|
||||||
shmdt(shm_dg_data);
|
shmdt(shm_dg_data);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
|
case KEY_RIGHT:
|
||||||
case '.':
|
case '.':
|
||||||
if (sortmode < (NUM_SORTMODES-1)) sortmode++; else sortmode = SORTMODE_USERNAME;
|
if (sortmode < (NUM_SORTMODES-1)) sortmode++; else sortmode = SORTMODE_USERNAME;
|
||||||
break;
|
break;
|
||||||
|
case KEY_LEFT:
|
||||||
case ',':
|
case ',':
|
||||||
if (sortmode > SORTMODE_USERNAME) sortmode--; else sortmode = (NUM_SORTMODES-1);
|
if (sortmode > SORTMODE_USERNAME) sortmode--; else sortmode = (NUM_SORTMODES-1);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue