Freeze when using joystick hat switch

It is actually beyond comprehension how such an obvious issue was missed in testing :frowning: