views:

66

answers:

2

In every game I make with pygame it won't register any more then 2 simultaneous key presses. (e.g. if I'm holding up and left to move it won't let me press space to fire.) Is this software? Hardware? Is there anything I can do about it?

EDIT: I use a Digital Media Keyboard 3000 on one computer and it does pretty good. According to KeyScan it can do about 6 keys at once. The computer I code on OTOH, is a laptop and won't do more than 2 keys. It is an HP Pavillion Entertainment PC. Input capturing is like so:

`for e in pygame.event.get():
     ## do stuff`

Both computers ran the same code when I tested them. So I guess it is hardware. Thanks everyone!

+2  A: 

I have no experience with pygame, but is probably a hardware issue. You can use the KeyScan program mentioned in one of the answers posted there to test your keyboard.

littlegreen
A: 

This varies widely from keyboard to keyboard; it's cheap hardware design.

Russell Borogove