[SDL] Keyboards Stink

Donny Viszneki donny.viszneki at gmail.com
Fri Jan 23 14:52:10 PST 2009


On Fri, Jan 23, 2009 at 5:45 PM, Jonathan Dearborn <grimfang4 at gmail.com> wrote:
> Indefinitely without user interaction, yes.  You have to press and release
> the offending key to stop the cursor from moving (or ship from spinning,
> etc.).  The best I've got right now is that you can press the opposite
> direction to stop it as well (the natural reaction to a runaway cursor).

That's a very different problem from any keyjamming problem I've ever
experienced. Just to be clear:

Depress Q
Depress W
Depress S
Release S
Release W
Release Q

Keyjamming problem: No events for S are ever sent.

This is a common problem, and this is the reason that so many games
use the modifier keys as buttons: because modifier keys are intended
for use in combination with other keys, they often get their own
circuits, which means they can be combined with more combinations of
keys.

I've never encountered a keyboard would send a KEYDOWN event for a
key, and then not send a KEYUP event even whenever *all* keys have
been released. You have a seriously shitty keyboard if that is the
case. Buy a new one! (Or, as I said earlier, replace the keyboard
controller!)

-- 
http://codebad.com/



More information about the SDL mailing list