← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/zoom into lp:widelands

 

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.


References