Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
C++ Borland HELP!
Reply
Posted 2002-04-08, 05:58 PM
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
Old
Profile PM WWW Search
spa is neither ape nor machine; has so far settled for the in-betweenspa is neither ape nor machine; has so far settled for the in-between
 
spa
 



 
Reply
Posted 2002-04-09, 08:18 AM in reply to spa's post "C++ Borland HELP!"
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
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:21 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.