[PATCH] Little bug correction

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

Dans l’article <3k715a.h8a.ln at 127.0.0.1>, “Patrice Mandin”
a tapot? avec ses petits doigts:

Well, I also checked other keyboard input drivers, and the bug is also
there, so add these patches please:

–8<–8<–8<–8<–8<–8<–8<–8<–

— SDL-1.2.4-cvs/src/video/ataricommon/SDL_biosevents.c Sun Feb 17 20:54:28 2002
+++ SDL-1.2.4-mint/src/video/ataricommon/SDL_biosevents.c Thu Feb 21 11:43:42 2002
@@ -139,7 +139,7 @@

	/* Key unpressed ? */
	if (bios_previouskeyboard[i] && !bios_currentkeyboard[i])
  •   	SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, 0, &keysym));
    
  •   	SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, bios_currentascii[i], &keysym));
    

    }

    AtariXbios_PostMouseEvents(this);
    — SDL-1.2.4-cvs/src/video/ataricommon/SDL_gemdosevents.c Sun Feb 17 20:54:28 2002
    +++ SDL-1.2.4-mint/src/video/ataricommon/SDL_gemdosevents.c Thu Feb 21 11:44:01 2002
    @@ -144,7 +144,7 @@

      /* Key unpressed ? */
      if (gemdos_previouskeyboard[i] && !gemdos_currentkeyboard[i])
    
  •   	SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, 0, &keysym));
    
  •   	SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, gemdos_currentascii[i], &keysym));
    

    }

    AtariXbios_PostMouseEvents(this);

–8<–8<–8<–8<–8<–8<–8<–8<----
Patrice Mandin
WWW: http://www.multimania.com/pmandin
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Dans l’article <3k715a.h8a.ln at 127.0.0.1>, “Patrice Mandin”
a tapot? avec ses petits doigts:

Well, I also checked other keyboard input drivers, and the bug is also
there, so add these patches please:

You got it, thanks!

-Sam Lantinga, Software Engineer, Blizzard Entertainment

“Sam Lantinga” wrote:

You got it, thanks!

-Sam Lantinga, Software Engineer, Blizzard Entertainment

Seems you forgot to apply the patch from my first post (in
SDL_gemevents.c). There are three patches to do.–
Patrice Mandin
WWW: http://www.multimania.com/pmandin
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux