[SDL] Multiple keypresses
Mik Mifflin
dogansmoobs at ctel.net
Sun Jan 13 13:46:01 PST 2002
Mattias Engdegård wrote:
> Mik Mifflin <dogansmoobs at ctel.net> wrote:
>>Oh, man, it looks like that's it. I changed the keys around and it works
>>great now. Looks like I'll be looking through more junk piles for a
>>better
>>keyboard! :)
>
> This won't help others who run your code. Most keyboards have problems
> with several simultaneous keypresses. This is usually a hardware
> limitation; there is no software magic SDL can do to prevent this
>
> Modifier keys (shift, control, alt etc) are often more robust in this
> regard so they make good keys for keyboard control.
>
> Of course, if you have a choice then designing your game to not require
> many simultaneous keypresses is the best solution (and probably makes the
> game easier to control as well)
>
> Don't fall in the "my keyboard is a 102-button gamepad" trap. Look
> rather at good console games for inspiration
Yes, I have fixed it for my current keyboard, and it's just 3 keys. It's
an asteroids clone. How complex could the controls get? Is there any
pattern to this "some keyboards can't detect multiple keypresses" stuff? I
want to make sure people can play the game, becuase as it is now, you
cannot change the controls without altering the source.
--
- Mik Mifflin
More information about the SDL
mailing list