denilsonsa / udev-joystick-blacklist

Fix for keyboard/mouse/tablet being detected as joystick in Linux
118 stars 27 forks source link

Group the common checks together #28

Open whot opened 7 years ago

whot commented 7 years ago

Instead of having the same rules copied for all devices, group the checks that we run on all of them anyway into a set of checks at the beginning. This way we can quickly filter out nonmatching devices.

This also removes the ID_INPUT_JOYSTICK tag removal for js devices, the device should be matched by the preceding rule and thus have the property removed alrady.

No real functional changes, but we now ignore remove events.