It is currently November 18, 2018, 08:20:49 PM




Post new topic Reply to topic  [ 2 posts ] 
 Arrow Key input in C++ 
Author Message
Tester
User avatar

Joined: July 10, 2006, 06:54:12 AM
Posts: 234
Post Arrow Key input in C++
I was trying to make my first little 'game' and was wondering how do I make it so C++ reads the input of an arrow key.

I was going to run the thing in DOS and just have it so you navigate your X through a maze and it moves you by clearing and refreshing the window.


March 09, 2010, 10:41:36 PM
Profile
Traveller
User avatar

Joined: June 02, 2006, 12:21:03 PM
Posts: 203
Location: Poland
Post Re: Arrow Key input in C++
It's not DOS that you are using. You can call it either terminal or a 'doslike window' .

Answering your question. It would be fairly easy to go on using WinAPI's routines for handling key input. I'm not really sure if it's possible to handle special keys like arrows without using additional libraries.

_________________
Personal Dev Blog : Under Maintainance


March 10, 2010, 12:09:21 AM
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.