Mercurial > sdl-ios-xcode
diff src/joystick/win32/SDL_dxjoystick.c @ 2580:64fa227c01ce gsoc2008_force_feedback
Added the concept of the HelperWindow to help with DirectInput.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 11:22:01 +0000 |
parents | bd2a6c70cb29 |
children | acd5da848404 |
line wrap: on
line diff
--- 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)) {