Joystick support now works.

Still a lot of work to do to bring it up to scratch, though.