I’m trying again tu submit to SDL tree a little patch
that I’ve already applied to my local SDL sources.
Without this patch the library doesn’t recognize
correcly the toggle state of NumLock and CapsLock keys
on startup.
Thanks for any feedback.
Enzo
-------------- next part --------------
diff -u --recursive --new-file SDL-1.2.0/src/video/wincommon/SDL_sysevents.c SDL-1.2.0-patched/src/video/wincommon/SDL_sysevents.c
— SDL-1.2.0/src/video/wincommon/SDL_sysevents.c Wed Feb 28 13:35:28 2001
+++ SDL-1.2.0-patched/src/video/wincommon/SDL_sysevents.c Mon Apr 9 11:02:57 2001
@@ -134,10 +134,10 @@
if ( keyboard[VK_RMENU] & 0x80) {
state |= KMOD_RALT;
}
-
if ( keyboard[VK_NUMLOCK] & 0x80) {
-
if ( keyboard[VK_NUMLOCK] & 0x01) { state |= KMOD_NUM; }
-
if ( keyboard[VK_CAPITAL] & 0x80) {
-
}if ( keyboard[VK_CAPITAL] & 0x01) { state |= KMOD_CAPS; }