src/core/linux/SDL_evdev.c
changeset 9779 49b5a975a238
parent 9729 64f0929bcd2e
child 9780 7f9b74280df6
     1.1 --- a/src/core/linux/SDL_evdev.c	Wed Jun 24 10:56:51 2015 -0700
     1.2 +++ b/src/core/linux/SDL_evdev.c	Wed Jun 24 17:54:39 2015 -0700
     1.3 @@ -547,12 +547,11 @@
     1.4          return;
     1.5      }
     1.6      
     1.7 -    if (!(udev_class & (SDL_UDEV_DEVICE_MOUSE|SDL_UDEV_DEVICE_KEYBOARD))) {
     1.8 -        return;
     1.9 -    }
    1.10 -
    1.11 -    switch( udev_type ) {
    1.12 +    switch(udev_type) {
    1.13      case SDL_UDEV_DEVICEADDED:
    1.14 +        if (!(udev_class & (SDL_UDEV_DEVICE_MOUSE|SDL_UDEV_DEVICE_KEYBOARD))) {
    1.15 +            return;
    1.16 +        }
    1.17          SDL_EVDEV_device_added(devpath);
    1.18          break;
    1.19