Fixes window resize and key repeat. New key behaviour : the Touche will containe the last key pressed, until it is released. This can be problematic in some places, but i'm not sure. The other possibility is to unset it when entering get_input to get the old behaviour and rely on the key repeat.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@560 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2009-01-28 18:43:27 +00:00
parent 4d62d6f93f
commit 11bc1066ba

View File

@ -317,6 +317,9 @@ void Handle_Key_Release(SDL_Event* event)
INPUT_Nouveau_Mouse_K=0; INPUT_Nouveau_Mouse_K=0;
Move_cursor_with_constraints(); Move_cursor_with_constraints();
} }
Touche = 0;
Touche_ANSI=0;
} }
@ -398,5 +401,5 @@ int Get_input(void)
// (c'est fait ici car on est sur que cette fonction est apellée partout ou on a besoin d'interragir avec l'utilisateur) // (c'est fait ici car on est sur que cette fonction est apellée partout ou on a besoin d'interragir avec l'utilisateur)
Flush_update(); Flush_update();
return 0; return User_Feedback_Required;
} }