How do you get the c++ program to sense the input of the arrow keys? I'm using Borland C++. Can you give me an example?
How do you get the c++ program to sense the input of the arrow keys? I'm using Borland C++. Can you give me an example?
use these with getch() or getchar whenever you want to test for keys.
left arrow = 'K'
up arrow = 'H'
down arrow = 'P'
right arrow = 'M'
like
Code:char ch; //do stuff... ch = getch(); if(ch == 'H') //do something for the UP arrow ect...
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.