xbmc/xbmc — pull request #770 by CrystalP (2012-03-16 03:30:17+00:00)
Title: [WIN] react to joystick connect/disconnect (fixes #12653 and #11220) + refactor

Fixes access violation soon after unplugging a controller, as XBMC and the SDL were not aware of the removal.

Windows doesn't have the code to separate joystick events from other devices, so no toast for the user at this time.

Used the opportunity to refactor and reuse code already written for Linux, so a compile test under linux would be appreciated.