Sign in to follow this  
doho

Lost keyboard events in DirectInput

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
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

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