Fixed crash on gamepad hat presses