mirror of
https://github.com/cc65/cc65.git
synced 2024-06-10 13:29:50 +00:00
Support targets without cursor keys
Not all targets to have cursor keys on their keyboard. Add corresponding #ifdefs to the conio test program.
This commit is contained in:
parent
e4f01a260d
commit
ec652367d0
|
@ -130,9 +130,11 @@ void main(void)
|
||||||
case CH_ENTER:
|
case CH_ENTER:
|
||||||
clrscr();
|
clrscr();
|
||||||
return;
|
return;
|
||||||
|
#ifdef CH_CURS_LEFT
|
||||||
case CH_CURS_LEFT:
|
case CH_CURS_LEFT:
|
||||||
inpos = (inpos - 1) % 8;
|
inpos = (inpos - 1) % 8;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case '0': case '1': case '2': case '3': case '4':
|
case '0': case '1': case '2': case '3': case '4':
|
||||||
case '5': case '6': case '7': case '8': case '9':
|
case '5': case '6': case '7': case '8': case '9':
|
||||||
(void)textcolor(i - '0');
|
(void)textcolor(i - '0');
|
||||||
|
@ -164,7 +166,9 @@ void main(void)
|
||||||
default:
|
default:
|
||||||
cputc(i);
|
cputc(i);
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
|
#ifdef CH_CURS_RIGHT
|
||||||
case CH_CURS_RIGHT:
|
case CH_CURS_RIGHT:
|
||||||
|
#endif
|
||||||
inpos = (inpos + 1) % 8;
|
inpos = (inpos + 1) % 8;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user