Advertisement Jump to content
Sign in to follow this  
Ethangar

DirectInput/Windows: Limit of Keys Pressed Simultaneously?

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

I have noticed that in Windows, there is a limit to the number of keys that can be pressed at once on the keyboard. It seems to be something like 3 or 4. I have a two player game where two players will often share a keyboard. Naturally, this causes a big issue when keys start locking. Is there a work-around? How about using other external devices with DirectInput like joysticks or gamepads, do they suffer from the same issue?

Share this post


Link to post
Share on other sites
Advertisement
This is not a windows limitation.

It's a limitation of the keyboard electical button hardware on most PC compatible keyboards.

Most of them use an electrical setup that is a grid of buttons that read in a sort of row/column way that prevents combinations that involve the same rows and columns of already pressed keys.

For example, if you have the 'a' key and the 'w' key pressed then you won't be able to press the 's' key or the 'q' key. Since, the 'a' key and the 'w' key use the row and column of the 's' key and 'q' key.

There may be some keyboards that work differently and avoid this issue, but I have yet to use one in over 20 years of using computer keyboards.

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.

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!