fixed the gamepad update routine for x11