Hi,
I wanted to use a PS3 controller as a SpaceNavigator replacement for
some time now. It works out of the box under Linux, but the default
axis mapping in Google Earth isn't very good. I almost wrote my own
axis remapper, but then stumbled upon this piece of software, which
does exactly what is needed:
https://launchpad.net/pystromo
It just needs a two-line patch and a mapping file. I described the
details here, in case anyone is interested:
http://blog.jfedor.org/2011/10/google-earth-with-ps3-controller.html
I don't have an Xbox controller, but something similar is probably
possible.
Regards,
Jacek