src/core/linux/SDL_udev.c
changeset 9616 eb2a8d9cfb74
parent 9454 bdc0c1dda0a4
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9615:54a796c13658 9616:eb2a8d9cfb74
   467             break;
   467             break;
   468         }
   468         }
   469         action = _this->udev_device_get_action(dev);
   469         action = _this->udev_device_get_action(dev);
   470 
   470 
   471         if (SDL_strcmp(action, "add") == 0) {
   471         if (SDL_strcmp(action, "add") == 0) {
       
   472             /* Wait for the device to finish initialization */
       
   473             SDL_Delay(100);
       
   474 
   472             device_event(SDL_UDEV_DEVICEADDED, dev);
   475             device_event(SDL_UDEV_DEVICEADDED, dev);
   473         } else if (SDL_strcmp(action, "remove") == 0) {
   476         } else if (SDL_strcmp(action, "remove") == 0) {
   474             device_event(SDL_UDEV_DEVICEREMOVED, dev);
   477             device_event(SDL_UDEV_DEVICEREMOVED, dev);
   475         }
   478         }
   476         
   479