[PATCH] Allocate SDL_NUM_SCANCODES entries in keystate

It looks like the keystate array is used as an array of booleans but
declared as a massive bitfield. Keyboard events were overwriting the
keymap. This patch changes the declaration to match the implementation.

If this is the wrong place to submit patches, could someone point me to the
correct forum?

Thanks,
-James

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_keyboard_c.h.diff
Type: application/octet-stream
Size: 354 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080207/62da3a67/attachment.obj

It looks like the keystate array is used as an array of booleans but
declared as a massive bitfield. Keyboard events were overwriting the
keymap. This patch changes the declaration to match the implementation.

Heheh, yeah, I caught that this morning.

If this is the wrong place to submit patches, could someone point me to the
correct forum?

Nope, this is the right place. You can also enter a bug in the bug
tracking system, if you don’t get a response here.

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment