Archived

This topic is now archived and is closed to further replies.

ANTZelda56

Using the arrow keys in a console program

Recommended Posts

Guest Anonymous Poster
I did this a long time ago, so I am not sure if this will work or if it is right


int c = getch();

if(c <= 0)
c = getch() + 0x100;

switch(c) {
case 333 :
}

Not sure of the 333 number. Probably might be something else.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I did this a long time ago, so I am not sure if this will work or if it is right


int c = getch();

if(c <= 0)
c = getch() + 0x100;

switch(c) {
case 333 :
}


Not sure of the 333 number. Probably might be something else.

Share this post


Link to post
Share on other sites