src/joystick/win32/SDL_dxjoystick.c
branchgsoc2008_force_feedback
changeset 2580 64fa227c01ce
parent 2579 bd2a6c70cb29
child 2616 acd5da848404
--- a/src/joystick/win32/SDL_dxjoystick.c	Sun Aug 03 10:25:25 2008 +0000
+++ b/src/joystick/win32/SDL_dxjoystick.c	Mon Aug 04 11:22:01 2008 +0000
@@ -67,7 +67,7 @@
 
 /* external variables referenced. */
 extern HINSTANCE SDL_Instance;
-extern HWND SDL_Window;
+extern HWND SDL_HelperWindow;
 
 
 /* local variables */
@@ -250,7 +250,7 @@
      * though. */
     result =
         IDirectInputDevice2_SetCooperativeLevel(joystick->hwdata->
-                                                InputDevice, SDL_Window,
+                                                InputDevice, SDL_HelperWindow,
                                                 DISCL_EXCLUSIVE |
                                                 DISCL_BACKGROUND);
     if (FAILED(result)) {