If you try to set up a joystick (I use a Sidewinder force feedback Pro) the function to assign a joystick control is accepting the analogue value from the stick and trying to define it as button control. The stack trace indicates there is a type mismatch error causing the crash which closes the application completely.
The "hat" stick on top of the joystick is also is not seen. which is a shame as it would be really useful for strafing. At the moment I have to use the keyboard for strafing whilst using the joystick, if the "hat" was seen I could have the joystick in one hand and mouse in the other and fight pirates.
note: The hat is seen as 2 axis with a range of -1 to 1 centring on 0 not as buttons.