Sign in to follow this  
moaid

c++ how to detect Enter button input

Recommended Posts

i have been trying to detect enter button and arrow keys and failing realy hard if some one could give me a source to detect arrow and enter key i would be realy greatful

Share this post


Link to post
Share on other sites

For console apps look up stdio.h, iostream, and friends.

 

For windowed apps, look up GetAsyncKeyState and WM_KEYDOWN/WM_KEYUP.

 

You probably want to abstract windowed mode input anyway as it a bit of a minefield to do properly. Search this forum for tons of advice using those keywords above...

 

Good luck!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this