src/core/windows/SDL_xinput.c
changeset 13846 599a8525ff0e
parent 13422 fd6a12de91c7
equal deleted inserted replaced
13845:210fb62f0c96 13846:599a8525ff0e
    80         SDL_assert(s_XInputDLLRefCount > 0);
    80         SDL_assert(s_XInputDLLRefCount > 0);
    81         s_XInputDLLRefCount++;
    81         s_XInputDLLRefCount++;
    82         return 0;  /* already loaded */
    82         return 0;  /* already loaded */
    83     }
    83     }
    84 
    84 
       
    85     /* NOTE: Don't load XinputUap.dll
       
    86      * This is XInput emulation over Windows.Gaming.Input, and has all the
       
    87      * limitations of that API (no devices at startup, no background input, etc.)
       
    88      */
    85     version = (1 << 16) | 4;
    89     version = (1 << 16) | 4;
    86     s_pXInputDLL = LoadLibrary(L"XInput1_4.dll");  /* 1.4 Ships with Windows 8. */
    90     s_pXInputDLL = LoadLibrary(L"XInput1_4.dll");  /* 1.4 Ships with Windows 8. */
    87     if (!s_pXInputDLL) {
    91     if (!s_pXInputDLL) {
    88         version = (1 << 16) | 3;
    92         version = (1 << 16) | 3;
    89         s_pXInputDLL = LoadLibrary(L"XInput1_3.dll");  /* 1.3 can be installed as a redistributable component. */
    93         s_pXInputDLL = LoadLibrary(L"XInput1_3.dll");  /* 1.3 can be installed as a redistributable component. */