games/flightgear: Improve joystick hat management
Do not hardcode the hatmap but derive values from HID data (based on HID1.1
spec), and if the HID data is unexpected, fall back to the old values.
That patch fixes support for Logitech Extreme 3D Pro joystick's hat.
Reported by: shurd
Tested by: shurd