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:
parent
2e163fb5af
commit
8dd0113697
7
divers.c
7
divers.c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user