Scrub vals

This commit is contained in:
jl777
2019-03-26 04:17:43 -11:00
parent 4b5da75d7d
commit b4043bc6bb
2 changed files with 18 additions and 17 deletions

View File

@@ -1040,6 +1040,21 @@ char games_readchar(struct games_state *rs)
if ( rs == 0 || rs->guiflag != 0 )
{
ch = (char) getch();
switch ( ch )
{
case KEY_LEFT:
c = 'h';
break;
case KEY_RIGHT:
c = 'l';
break;
case KEY_UP:
c = 'k';
break;
case KEY_DOWN:
c = 'j';
break;
}
if (ch == 3)
{
//_quit();