Cleans up Unix joystick implementation.