Support for ESC shortcut on GP2X (button X)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@591 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-02-04 01:27:04 +00:00
parent aaec8fd8a5
commit da942a7021
9 changed files with 47 additions and 41 deletions

View File

@@ -178,7 +178,7 @@ byte Readline_ex(word Pos_X,word Pos_Y,char * Chaine,byte Taille_affichee,byte T
Taille_affichee*(Menu_Facteur_X<<3),(Menu_Facteur_Y<<3));
Flush_update();
while ((Touche_lue!=SDLK_RETURN) && (Touche_lue!=SDLK_ESCAPE))
while ((Touche_lue!=SDLK_RETURN) && (Touche_lue!=TOUCHE_ESC))
{
Touche_lue=Get_key();
switch (Touche_lue)
@@ -258,7 +258,7 @@ byte Readline_ex(word Pos_X,word Pos_Y,char * Chaine,byte Taille_affichee,byte T
case SDLK_RETURN :
break;
case SDLK_ESCAPE :
case TOUCHE_ESC :
// On restaure la chaine initiale
strcpy(Chaine,Chaine_initiale);
Taille=strlen(Chaine);