Jump to content

Keys in a game!


Recommended Posts

Guest Jayenkai
Posted

I'm new to this C++ Stuff, and even newer to the SPV, but I'm giving it a go.

I've got most of my game up and running, but I can't figure out this key stuff..

I've got it grabbing keypresses (VK_Up, etc) but what's happening is that the keypresses are getting shoved into a buffer, then they're all happening all at once.

Isn't there a better way to work with the keys? Say, to test if a single key is pressed in?

I can work with that!!!

If not, can anyone manage to take a guess as to what it is I'm doing wrong, and possibly suggest how to fix it...?

Thanks

Guest maxh2003
Posted

You can use GetAsyncKeyState(int vKey) to read the current state of any key... does that help?

Guest Jayenkai
Posted

Yeah, but I managed it the other day..

Sorry, should've followed up!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.