Adding support for the q key on AppleII

This commit is contained in:
Christophe Meneboeuf 2016-09-15 22:48:34 +02:00
parent 47af62fc17
commit 4031f7fae3
1 changed files with 6 additions and 0 deletions

View File

@ -156,9 +156,15 @@ void run( void )
printf("Iteration: 1");
while( ch != 'q')
{
/* Evolving the cells */
update();
/* Printing iterations */
gotoxy(11u, NB_LINES);
printf( itoa(nb_iterations++, str_nb_iteration, 10) );
/* Testing key pressed */
if( kbhit() ){
ch = cgetc();
}
}
}