Error handling too much keys pressed

Hi,

I'm Eduardo Martin, from Spain. I have a blog about XNA development for dummies, xna-para-torpes.blogspot.com , and i'm developing a serie of tutorials about animate a sprite.

I know that this is not maybe the correct forum to put this post, but i've tried to put it in codeplex but looks like the codeplex forum has not movement......, and i hope that in this forum someone can help me.

I've been using your library (XGameInput, from codeplex) to handle the keyboard input, but i've a problem in one case.

The tutorial is about a warrior who moves in eight directions. Also, the warrior can run pressing the shift at the same time that the cursors keys.

All work fine to walk, and also to run, but i have a problem in one directions when the warrior must attack.

The attack is triggered by the space key.

For example, using the up cursor + right cursor + shift key + space, the warrior faces to north-east, running and the attack is triggered. All work fine in all direction, except in this one:

Up cursor
+
Left cursor
+
Space

or in this one:

Up cursor
+
Left cursor
+
Shift key
+
Space

Do you know anything about a especially combination of keys that cannot be handled by XNA, or maybe by the computer itself?

Thanks in advanced for anything clue about this !!!!

[1350 byte] By [mihe] at [2007-12-27]
# 1
Some keyboard have problems with certain key combinations because well because they are cheap (or costy ***.. that's the same). It can be also XNA of course but past experiences tell me otherwise + your number of keys work with other combinations.

This is keyboard specific and might actually work on a different computer. You might try to map the keys to char keys they tend to be better with this.

Almindor at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 2

Actually, the key combination problem is not a cause of the "cheapness" of the keyboards, but is a hardware limitation. The keys are gouped in a couple of "key groups" which share the same wire for connectivity, this is why some combinations don't work. Most of the games where I had to use the keyboard had problems with the Up+Left+Space combination, and I've even used 3 different keyboards for the same game.

So the problem in definetly NOT XNA.... and you will likely encunter the same problem on other PCs.

CatalinZima at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 3

Thanks so much to both, i'm going to try to run, for example, the game in a laptop, in order to check the behavior, and i'm going to change my game keys.

Thanks for all !!!!!!!

mihe at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 4
Ok well perhaps it's not directly related to "cheapness" but I do know for a fact that certain keyboards can handle much more key combinations than others. (to the point that some can always handle eg: 4 keys ANY keys pressed at once, while others can only eg: 2 (of all the combos))
Almindor at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...