Switched to new joystick code

Added a bunch of joystick features, fixed some joystick bugs, including a crash
when reading hats caused by QMap.