question: how do i get the arrow keys instead of these shift, alt, and control keys working? i.e. left arrow, right arrow, up arrow, down arrow. help. s.o.s.
Code:keyboard=*(unsigned short far*)MK_FP(0x40,0x17); if(kbhit()){a=getch();} if(keyboard&0x0002) { // action. } if(keyboard&0x0001) { // action. } if(keyboard&0x0004) { // action. } if(keyboard&0x0008) { // action. }