Use SDL specific window class to avoid conflicting with Steam
authorSam Lantinga <slouken@libsdl.org>
Wed, 15 Aug 2018 19:53:31 -0700
changeset 1211434cc14308155
parent 12113 9bede6f89b4c
child 12115 0d9277d27e2d
Use SDL specific window class to avoid conflicting with Steam
src/joystick/hidapi/SDL_hidapijoystick.c
     1.1 --- a/src/joystick/hidapi/SDL_hidapijoystick.c	Wed Aug 15 19:53:30 2018 -0700
     1.2 +++ b/src/joystick/hidapi/SDL_hidapijoystick.c	Wed Aug 15 19:53:31 2018 -0700
     1.3 @@ -196,12 +196,12 @@
     1.4  
     1.5      SDL_memset(&SDL_HIDAPI_discovery.m_wndClass, 0x0, sizeof(SDL_HIDAPI_discovery.m_wndClass));
     1.6      SDL_HIDAPI_discovery.m_wndClass.hInstance = GetModuleHandle(NULL);
     1.7 -    SDL_HIDAPI_discovery.m_wndClass.lpszClassName = "ControllerDetect";
     1.8 +    SDL_HIDAPI_discovery.m_wndClass.lpszClassName = "SDL_HIDAPI_DEVICE_DETECTION";
     1.9      SDL_HIDAPI_discovery.m_wndClass.lpfnWndProc = ControllerWndProc;      /* This function is called by windows */
    1.10      SDL_HIDAPI_discovery.m_wndClass.cbSize = sizeof(WNDCLASSEX);
    1.11  
    1.12      RegisterClassExA(&SDL_HIDAPI_discovery.m_wndClass);
    1.13 -    SDL_HIDAPI_discovery.m_hwndMsg = CreateWindowExA(0, "ControllerDetect", NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, NULL, NULL, NULL);
    1.14 +    SDL_HIDAPI_discovery.m_hwndMsg = CreateWindowExA(0, "SDL_HIDAPI_DEVICE_DETECTION", NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, NULL, NULL, NULL);
    1.15  
    1.16      {
    1.17          DEV_BROADCAST_DEVICEINTERFACE_A devBroadcast;