[SDL] MacOS SDL
slouken at devolution.com
Thu Aug 3 10:21:42 PDT 2000
> >>> For instance, if I want to write "hello", I start pressing "h",
> >>> but it gets "hhhhhhhhhhhhh...
> >> I've heard of this, but I'm not sure why this would be. Perhaps the
> >> SDL keyboard code should look at the low memory scancodes directly?
> >I only seem to have the problem when running my program from the debugger
> >(in CodeWarrior).
> I've seen it there too. Never tried it outside CW though.
> Who did the event-handling stuff anyway? He/She/They can probably
> comment better on the problem. I've never looked at it, but assumedly,
> it's catching the keydown event but missing the keyup event (assuming
> that's sent-- I seem to recall there was something odd about
> keyup/keydown events, but can't recall any specifics).
I remember what the problem was. CodeWarrior switches the foreground
process context when it stops the running program, so it gets the key
up events. Supposedly the code is fine outside of the debugger. What
SDL should do is reset the keyboard when it loses focus. Could someone
with the problem watch the OS events that the program receives, and see
if there's a good place to insert that code?
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
More information about the SDL