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:
parent
53129ec1a7
commit
94b8fa4f9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user