Support for two shortcuts per function

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@602 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-02-05 22:58:13 +00:00
parent ca2e12ff00
commit 13aa8e0988
14 changed files with 468 additions and 241 deletions

View File

@@ -421,7 +421,10 @@ const char * Nom_touche(word Touche)
{ SDLK_MENU , "Menu" },
{ SDLK_POWER , "Power" },
{ SDLK_EURO , "Euro" },
{ SDLK_UNDO , "Undo" }
{ SDLK_UNDO , "Undo" },
{ TOUCHE_MOUSEMIDDLE, "Mouse3" },
{ TOUCHE_MOUSEWHEELUP, "WheelUp" },
{ TOUCHE_MOUSEWHEELDOWN, "WheelDown" }
};
int Indice;
@@ -434,7 +437,13 @@ const char * Nom_touche(word Touche)
strcat(Buffer, "Alt+");
if (Touche & MOD_SHIFT)
strcat(Buffer, "Shift+");
if (Touche>=TOUCHE_BUTTON && Touche<=TOUCHE_BUTTON+18)
{
sprintf(Buffer+strlen(Buffer), "[B%d]", Touche);
return Buffer;
}
if (Touche & 0x8000)
{
sprintf(Buffer+strlen(Buffer), "[%d]", Touche & 0xFFF);