pioneerspacesim/pioneer — pull request #3141 by kuroneko (2014-08-25 00:30:36+00:00)
Title: Improved Joystick Binding

Changes the Joystick device binding to use device specific identifiers rather than arbitrary device order.

This is somewhat essential in this day and age as Joysticks no longer initialise in a guaranteed order, and several devices (rudder pedals, high end throttle quadrants) overload the normal axes for specialised functions -- Rudder Pedals typically use X/Y axes for the toebrakes for example, and the warthog throttle uses the X/Y axes for the slew control pointer.

If we use the SDL Joystick GUID (which either comes from the OS on Windows, or is derived from the device's USB vendor/product ID on Linux) we can ensure that bindings will reassociate with the correct device irrespective of which order they initialised into the OS's joystick support.

Also has a small change which puts the (human) joystick name into the binding panel - breaks binding layout slightly, but makes it very clear which device is being bound for compound set-ups.