Implemented only for X11 so far. Also clears up viewport_size call. Changed to viewport_info to also grab X/Y info.
Rewrites a large chunk of retroarch-joyconfig to work with "any" joypad driver. This allows e.g. the tool to work without X. SDL event pumps require X to work (for some reason).