I have given it a quick spin, zooming works fine. I still think it would be 
good to have some keyboard navigation for it, something like:

bool MapView::handle_key(bool down, SDL_Keysym code) {
        if (down)
                switch (code.sym) {
                case SDLK_PLUS:
                        if (code.mod & KMOD_CTRL) {
                                <decrease zoom>;
                                return true;
                        }
                        break;
                case SDLK_MINUS:
                        if (code.mod & KMOD_CTRL) {
                                <increase zoom>;
                                return true;
                        }
                        break;
                case SDLK_0:
                        if (code.mod & KMOD_CTRL) {
                                <reset zoom>;
                                return true;
                        }
                        break;
                default:
                        break;
                }
        return false;
}
-- 
https://code.launchpad.net/~widelands-dev/widelands/zoom/+merge/309086
Your team Widelands Developers is requested to review the proposed merge of 
lp:~widelands-dev/widelands/zoom into lp:widelands.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to