xbmc/xbmc — pull request #972 by wsoltys (2012-05-17 12:19:48+00:00)
Title: [WIN32] replace SDL Joystick by DirectInput

There're three reasons why this was done:
1) the old and deprecated joystick interface used in SDL seems to have problems with newer joysticks like the x360. Also a native implementation with the old interface showed a lot of crashes.
2) a further step to get rid of SDL
3) see 2)

I dunno what to do with HAS_SDL_JOYSTICK. It also guarded generic joystick code which I'll need with directinput as well. Currently I just left it in and only ifdef'ed the SDL_Joystick init out.

I also had to place the g_Joystick.Initialize() after the window creation as I need the window handle in order to set the cooperative level. Please review if this could cause problems somehow.