(GX) fix dangling file handle
(GX) cleanup input code a bit

fix minor accuracy issue with joystick values