src/core/linux/SDL_evdev.c
changeset 9779 49b5a975a238
parent 9729 64f0929bcd2e
child 9780 7f9b74280df6
equal deleted inserted replaced
9778:e7de5f41bb79 9779:49b5a975a238
   545 {
   545 {
   546     if (devpath == NULL) {
   546     if (devpath == NULL) {
   547         return;
   547         return;
   548     }
   548     }
   549     
   549     
   550     if (!(udev_class & (SDL_UDEV_DEVICE_MOUSE|SDL_UDEV_DEVICE_KEYBOARD))) {
   550     switch(udev_type) {
   551         return;
       
   552     }
       
   553 
       
   554     switch( udev_type ) {
       
   555     case SDL_UDEV_DEVICEADDED:
   551     case SDL_UDEV_DEVICEADDED:
       
   552         if (!(udev_class & (SDL_UDEV_DEVICE_MOUSE|SDL_UDEV_DEVICE_KEYBOARD))) {
       
   553             return;
       
   554         }
   556         SDL_EVDEV_device_added(devpath);
   555         SDL_EVDEV_device_added(devpath);
   557         break;
   556         break;
   558             
   557             
   559     case SDL_UDEV_DEVICEREMOVED:
   558     case SDL_UDEV_DEVICEREMOVED:
   560         SDL_EVDEV_device_removed(devpath);
   559         SDL_EVDEV_device_removed(devpath);