Disables keyboard on "Attendre_fin_de_clic", so we no longer need to empty the event loop.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@593 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-02-04 18:21:48 +00:00
parent 00b67c23ef
commit f90af64c83
3 changed files with 20 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ void Set_color(byte Couleur, byte Rouge, byte Vert, byte Bleu)
SDL_SetPalette(Ecran_SDL, SDL_LOGPAL, &comp, Couleur, 1);
}
/*
void Attendre_fin_de_click(void)
{
SDL_Event event;
@@ -115,6 +116,17 @@ void Attendre_fin_de_click(void)
Mouse_K=0;
INPUT_Nouveau_Mouse_K=0;
}
*/
void Attendre_fin_de_click(void)
{
// On désactive tous les raccourcis clavier
Desactiver_clavier=1;
// On force la souris à se mettre à 0
Mouse_K=0;
INPUT_Nouveau_Mouse_K=0;
}
void Effacer_image_courante_Stencil(byte Couleur, byte * Pochoir)
//Effacer l'image courante avec une certaine couleur en mode Stencil