[SDL] [PATCH] Little bug correction
Patrice Mandin
pmandin at fr.mailandnews.com
Wed Feb 20 14:31:05 PST 2002
For Sam:
Could you apply this little patch, it corrects a bug where some keys are
blocked in pressed state, and can not be used anymore.
--8<--8<--8<--8<--8<--8<--8<--8<--
--- SDL-1.2.4-cvs/src/video/gem/SDL_gemevents.c Sun Feb 17 20:54:28 2002
+++ SDL-1.2.4-mint/src/video/gem/SDL_gemevents.c Wed Feb 20 23:17:45 2002
@@ -180,7 +180,7 @@
/* Key unpressed ? */
if (gem_previouskeyboard[i] && !gem_currentkeyboard[i])
- SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, 0, &keysym));
+ SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, gem_currentascii[i], &keysym));
}
memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard));
--8<--8<--8<--8<--8<--8<--8<--8<--
--
Patrice Mandin
WWW: http://www.multimania.com/pmandin
Programmeur Linux, Atari
Spécialité: Développement, jeux
More information about the SDL
mailing list