C++ Borland HELP!
Hey i was wondering if anyone knew anything about borland C++ and how to do like a 'get key' command or something around those means??? Reason is I want to make a game for my final prog in my class and i need to be able to use the arrow keys to move somehow... Thanks for your help in advance
|
Um, getch() gets a key, but I'm not sure if it'll help you. If it does work with the arrow keys, the first time it'll return 0 or some number under 32, followed by another number. Use these numbers together to determine which key was pressed. Most keys return a single character. use kbhit() to determine whether there is input to retrieve. (getch() is blocking)
Good luck --WetWired |
All times are GMT -6. The time now is 03:15 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.