Jump to content
  • Advertisement
Sign in to follow this  
doho

Lost keyboard events in DirectInput

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

DirectInput misses the release event from the keyboard if I simultaneously press five keys and then release one. Using buffered DirectInput events and reading the state both give me the information that the key is still beeing pressed. GetAsyncKeyState however, never shows the fifth key as beeing pressed. I have a Microsoft Natural Keyboard Pro with an USB and PS2 interface and this problem only occurs when I'm using the PS2 interface! Do your games account for this behaviour?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by FoxHunter2
Apart from your question: Why would anybody on earth want to press five keys at the same time?
By accident, multiplayer on a single keyboard..

Share this post


Link to post
Share on other sites
This could also be the result of limitations in the ps/2 interface and the internal circuits in the keyboard. I have a similar problem where I can only press three keys simultaneously on my Logitech ps/2 KB, but not any three keys, it only works with some, wich is seriously annoying. My advice would be to test your game on as many different keyboard / interface combinations as possible, to determine if you are hitting a hardware limitation or something in Direct Input / Win32.

Share this post


Link to post
Share on other sites
Quote:
Original post by FoxHunter2
Apart from your question: Why would anybody on earth want to press five keys at the same time?


[OT]
You never played Descent for DOS I take it ;)
[/OT]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!