소스 검색

Removed a duplicate delay accidentally added during code refactor

(cherry picked from commit 926db1bd544364a9e4ab61e60bcfbe75e05adf56)
Sam Lantinga 2 년 전
부모
커밋
1e6ffc6294
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  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;