English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Okay I want to make a program similar to Pong (c) and I don't know what you could put for like the equivalent to if u hit the up arrow / down arrow... the only thing i know that has to do with hitting keyboard buttons is "kbhit()", which if anything is hit, but what would be for up/down arrow hit?

2006-11-18 12:03:41 · 2 answers · asked by YahooAnswers 2 in Computers & Internet Programming & Design

2 answers

kbhit will return a integer to you, go to asciitable.com to find out what des each interger corresponds to what key.

good luck

2006-11-18 13:46:05 · answer #1 · answered by Anonymous · 0 0

I am a begineer I have not learned that but TRY google or gode guru

2006-11-18 12:12:41 · answer #2 · answered by Best Helper 4 · 0 2

fedest.com, questions and answers