Added callback for joystick hat.