Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   C++ Borland HELP! (http://zelaron.com/forum/showthread.php?t=2265)

spa 2002-04-08 05:58 PM

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

WetWired 2002-04-09 08:18 AM

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 09:30 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.