src/joystick/windows/SDL_dxjoystick.c
changeset 7663 53fe1b64eb2d
parent 7321 46de847fef38
child 7684 dee82553d409
equal deleted inserted replaced
7662:d31efd717578 7663:53fe1b64eb2d
   431     if (!s_bXInputEnabled)
   431     if (!s_bXInputEnabled)
   432     {
   432     {
   433         return SDL_FALSE;
   433         return SDL_FALSE;
   434     }
   434     }
   435 
   435 
   436     // Check for well known XInput device GUIDs
   436     /* Check for well known XInput device GUIDs */
   437     // We need to do this for the Valve Streaming Gamepad because it's virtualized and doesn't show up in the device list.
   437     /* We need to do this for the Valve Streaming Gamepad because it's virtualized and doesn't show up in the device list. */
   438     for ( iDevice = 0; iDevice < SDL_arraysize(s_XInputProductGUID); ++iDevice ) {
   438     for ( iDevice = 0; iDevice < SDL_arraysize(s_XInputProductGUID); ++iDevice ) {
   439         if (SDL_memcmp(pGuidProductFromDirectInput, s_XInputProductGUID[iDevice], sizeof(GUID)) == 0) {
   439         if (SDL_memcmp(pGuidProductFromDirectInput, s_XInputProductGUID[iDevice], sizeof(GUID)) == 0) {
   440             return SDL_TRUE;
   440             return SDL_TRUE;
   441         }
   441         }
   442     }
   442     }