Fix editor mouse control (#57)

Refactor input device event loop, changed
to pump events
Fix editor changing items on clicking select-only fields
Fix editor right click detection
Merge branch 'master' of https://github.com/cxong/cdogs-sdl

Conflicts:
	src/cdogs/keyboard.c