Fix CRASH in Help screen, when pressing PageDown in pages of less than 16 lines. Bug is present in 98.0% release:(

Internal support for action shortcuts on joystick buttons, mousewheel, mouse3.
Mousewheel now scrolls lists in Save/Load, Text, Help.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@589 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-02-04 00:23:27 +00:00
parent 0c26dc6459
commit bb7f09fc8e
6 changed files with 195 additions and 72 deletions

30
aide.c
View File

@@ -339,14 +339,36 @@ void Fenetre_aide(int Section, const char *Sous_section)
Scroller_aide();
Touche=0;
break;
case SDLK_PAGEDOWN : // PageDown
if (Position_d_aide_en_cours<Nb_lignes-31)
Position_d_aide_en_cours+=15;
case (SDLK_LAST+2) : // WheelUp
if (Position_d_aide_en_cours>3)
Position_d_aide_en_cours-=3;
else
Position_d_aide_en_cours=Nb_lignes-16;
Position_d_aide_en_cours=0;
Scroller_aide();
Touche=0;
break;
case SDLK_PAGEDOWN : // PageDown
if (Nb_lignes>16)
{
if (Position_d_aide_en_cours<Nb_lignes-16-15)
Position_d_aide_en_cours+=15;
else
Position_d_aide_en_cours=Nb_lignes-16;
Scroller_aide();
Touche=0;
}
break;
case (SDLK_LAST+3) : // Wheeldown
if (Nb_lignes>16)
{
if (Position_d_aide_en_cours<Nb_lignes-16-3)
Position_d_aide_en_cours+=3;
else
Position_d_aide_en_cours=Nb_lignes-16;
Scroller_aide();
Touche=0;
}
break;
case SDLK_HOME : // Home
Position_d_aide_en_cours=0;
Scroller_aide();