1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Added support for Home/End.

This commit is contained in:
Frank Zago 2009-05-29 02:39:12 +00:00
parent 53129ec1a7
commit 94b8fa4f9d

View File

@ -334,6 +334,12 @@ void Slider::handleIt(SDL_Event sEvent)
case SDLK_PAGEDOWN:
CPG->ourScenSel->mapsel.moveByX(+CPG->ourScenSel->mapsel.slid->capacity);
break;
case SDLK_HOME:
CPG->ourScenSel->mapsel.moveByX(-CPG->ourScenSel->mapsel.slid->positionsAmnt);
break;
case SDLK_END:
CPG->ourScenSel->mapsel.moveByX(+CPG->ourScenSel->mapsel.slid->positionsAmnt);
break;
default:
//TODO do something nasty here like logs entry..
break;