Archived

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

black_mage_s

ASCII Input

Recommended Posts

black_mage_s    103
Im doing this tutorial in winOOT for someone, long story, but i cant remember/find the input codes for the arrow keys, so if anyone here could help me out, it would be much appreiciated. sorry for my appalling spelling and grammer but im very tired. And Yes, I Looked On Google

Share this post


Link to post
Share on other sites
CaptainJester    523
#include <conio.h>

void main() {
char ch;
while(true) {
ch=getch();
printf("key=%d",(int)ch);
}
}

---
Make it work.
Make it fast.

"Commmmpuuuuterrrr.." --Scotty Star Trek IV:The Voyage Home

Share this post


Link to post
Share on other sites
merlin9x9    174
Don''t forget that ASCII is a particular system for numeric representation of character data. There are other systems, and not all operating systems use ASCII. As a matter of fact, Windows uses a similar system called ANSI. Windows NT, 2000, and XP also use (internally, and for NT-only applications) a system called Unicode.

Share this post


Link to post
Share on other sites