Fixed the key release handling. Avoid to mess with global variables... or the shortcut keys will trigger the actions twice (both when pressed and released)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@323 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2008-11-03 17:03:30 +00:00
parent 2e163fb5af
commit 8dd0113697

View File

@ -183,15 +183,14 @@ void Get_input(void)
INPUT_Nouveau_Mouse_K=0;
break;
case SDL_KEYUP:
Touche = Conversion_Touche(event.key.keysym);
Touche_ANSI = Conversion_ANSI(event.key.keysym);
int ToucheR = Conversion_Touche(event.key.keysym);
if(Touche == Config_Touche[4])
if(ToucheR == Config_Touche[4])
{
INPUT_Nouveau_Mouse_K=0;
ok=1;
}
else if(Touche == Config_Touche[5])
else if(ToucheR == Config_Touche[5])
{
//[Touche] = Emulation de MOUSE CLICK RIGHT
INPUT_Nouveau_Mouse_K=0;