Too many keys pressed?
Blitz3D Forums/Blitz3D Beginners Area/Too many keys pressed?
| ||
I'm having trouble with the controls for my game. Its a 2 player versus game with an option to play using keyboard controls. My problem is that one characters controls are using the keys"T,F,G,H" to move and "1,2,3" for other functions. When some of the keys are held down at the same time for walking diagnally and moving while jumping I get a beeping sound(I know that windows sometimes gives this sound if you hold keys down to long) Is there any way to get around this? |
| ||
Known problem, it happens a lot, sadly with a lot of normal keyboard keys and cursor keys combos as well. Mark did something to the input system and put in a switcher command, but i dunno which one and whether it helps this problem or not. Anyone? Tracer |
| ||
Was it not something like EnableDirectInput? |
| ||
I believe this issue is keyboard-specific. One of my games works perfectly on most PCs, but on my laptop you can't play a 2 player game properly because this occurs. I don't believe there's any way around it because it's the fault of the keyboard interface (as far as I'm aware; could be wrong!). |
| ||
Was it not something like EnableDirectInput? Kind of. Mark actually stopped Blitz from using DirectInput in the hope that it would cause less problems. So the default Blitz operation should be the best, but it is worth a shot to see if it would work better with Direct Input, I suppose. I'm pretty sure James is right about it being keyboard specific. My fancy Logitech keyboard doesn't do it, and my crappy Yahoo keyboard does. Unfortunately, I like the feel of a good old finger-basher keyboard so I'm stuck with it. |
| ||
directinput had this problem too... i don't know why this don't work in BB - in PureBasic here is no such problem - i don't know why... |
| ||
Many keyboards (and some motherboards might cause it) gives an error message if too many keys pressed at once. That's a hardware issue, and can't be fixed :(. |
| ||
Nope - it's an OS Problem. with Win98 I can press more Keys at the same time then with winME. But - of course - it is limited to 3 or 4 keys. Remids me of a hoax virus that said "too many fingers on keyboard error", or even "you pressed too many keys at the same time, you must be homer simpson" :) |
| ||
Not only an OS problem. It is also a limit on how many keys that the keyboard can send to the motherboard. |
| ||
Yes, not only. But partially - I tested this with the same Keyboard on WIn98 and WinME. So for maximum Compatibility you should not read more than 2 keys in the same time. |
| ||
jfk, it's not a case of how many keys you read in at one point. It's a matter of how many the user decides to press. This is a big problem for splitscreen type games. Here's the best solution: Use keys like SHIFT and CONTROL instead of number or letter keys. These do not "count" towards the keyboard limit so you can hold more keys down at once. |
| ||
That's not entirely true - left ctrl on this keyboard prevents up and left cursor keys from being able to be read at the same time, for example. Very annoying. The fact is, PC keyboards are kak for gaming with. And you can't depend on people having a joystick these days. No wonder people are turning to consoles. The only solution is to have the keys fully redefinable, and let people sort it out as best they can. |