Fix accelerometer->joystick coordinates

- Swap X/Y accelerometer axis depending on screen ortientation
  (http://android-developers.blogspot.fr/2010/09/one-screen-turn-deserves-another.html)
- Swapped X value reported by accelerometer and adjusted Z value

See libSDL bugs 2155 & 2156:

- https://bugzilla.libsdl.org/show_bug.cgi?id=2155
- https://bugzilla.libsdl.org/show_bug.cgi?id=2156