#include <stdio.h> #include <bios.h> #include <ctype.h> int main(void) { int key; clrscr(); key = bioskey(0); printf("%x",key); if(key==0x4d00) printf("right"); if(key==0x4b00) printf("left"); if(key==0x4800) printf("up"); if(key==0x5000) printf("down"); getch(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)