Jump to content
  • Advertisement

Archived

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

Slayer-X

Input

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

Guest Anonymous Poster
NO! Sorry about that, I got that fixed. I was wondering how you would get multiple key input without stopping input from another key. Sorry about that before, I don't know why I put that up there.

Share this post


Link to post
Share on other sites
Advertisement
Well, in DOS there is no library functions to allow this: they all serialize the keystrokes. You have to write your own keyboard interrupt service routine, and hook it into interrupt 9, so you receive the keystrokes as they come in.

Rock

Share this post


Link to post
Share on other sites
Ok, I feel really stuid for asking this, but does anyone know how to continuously get input from the keyboard when a key is held down? I'm doing this in DOS and I can get a single key with kbhit and a switch statement, but I can't get the input to continue when the key is held down. The only thing I can think of is checking to see whether kbhit has a value of -1 for a keypress.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!