From 11bc1066bab84f83935a981733fe12e25981afa5 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 28 Jan 2009 18:43:27 +0000 Subject: [PATCH] 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 --- input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/input.c b/input.c index 16b8ebc6..248546ee 100644 --- a/input.c +++ b/input.c @@ -317,6 +317,9 @@ void Handle_Key_Release(SDL_Event* event) INPUT_Nouveau_Mouse_K=0; 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) Flush_update(); - return 0; + return User_Feedback_Required; }