Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <stdio.h>
#include <conio.h>
int main(){
int a;
printf("Press escape to quit!\n\n");
while(1)
{
a = getch(); /* Get key press and */
if (a == 0 ) { a = getch() + 0x100; } /* Add 256 if extended */
switch ( a )
{
case 27: /* If escape key */
printf( "Escape key. Exiting...\n" );
return 0;
case 315: /* If F1 key */
printf("Help me!\n");
break;
case 328: /* If Up Arrow key */
printf("Up Arrow key\n");
break;
case 336: /* If Down Arrow key */
printf("Down Arrow key\n");
break;
case 333: /* If Right Arrow key */
printf("Right Arrow key\n");
break;
case 331: /* If Left Arrow key */
printf("Left Arrow key\n");
break;
default:
printf("Key code is --> %d\n", a);
}
}
}