• Advertisement

Archived

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

Using the Arrow Keys

This topic is 5940 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

Just to start off, I''m a very amateur programmer, and as of now, window based DOS programs are the only things I can do right now. I was wondering if there was a way I could get my RGP i''m making to use the arrow keys instead of having to use the numpad. BTW i''m using the old Borland Turbo C++ 4.5

Share this post


Link to post
Share on other sites
Advertisement
In DOS, I''d say you have to write an interrupt handler to actually catch the ''event'' (and scan-code) of the key being pressed. But I don''t know how windows 3.x messes that up.

Share this post


Link to post
Share on other sites
ummmm ok.
heres what i''ve done so far:
#deinfe UpAr ''8'' etc for all the arrows. Now i''ve found out how to use the ESC key using ESC == getche() with ESC being defined as 0x1b. What are the numbers for the arrow keys, if there are any....?

Share this post


Link to post
Share on other sites

  • Advertisement