Jump to content
  • Advertisement

Archived

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

black_mage_s

ASCII Input

This topic is 5976 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
#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
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!