Browse Source

Removed a duplicate delay accidentally added during code refactor

(cherry picked from commit 926db1bd544364a9e4ab61e60bcfbe75e05adf56)
Sam Lantinga 2 years ago
parent
commit
1e6ffc6294
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/joystick/hidapi/SDL_hidapijoystick.c

+ 0 - 3
src/joystick/hidapi/SDL_hidapijoystick.c

@@ -448,9 +448,6 @@ static void HIDAPI_SetupDeviceDriver(SDL_HIDAPI_Device *device, SDL_bool *remove
                 int lock_count = 0;
                 char *path = SDL_strdup(device->path);
 
-                /* Wait a little bit for the device to initialize */
-                SDL_Delay(10);
-
                 SDL_AssertJoysticksLocked();
                 while (SDL_JoysticksLocked()) {
                     ++lock_count;