Arrow Keys

Need a source code that uses arrow keys.
Nene19Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
imladrisConnect With a Mentor Commented:
int c,arrow;

arrow=0;
c=getch();
if(c==0)arrow=getch();
if(arrow!=0)
{    .....
}


if arrow is 72 it is UP, if it is 80 it is DOWN
if it is 75 it is LEFT, if it is 77 it is RIGHT

0
All Courses

From novice to tech pro — start learning today.