Implemented Linux joystick blacklist

Based on https://raw.githubusercontent.com/denilsonsa/udev-joystick-blacklist/master/generate_rules.py

This fixes a few devices that are not actually joysticks showing up as such in SDL
This commit is contained in:
Sam Lantinga 2017-04-06 06:30:43 -07:00
parent a4dbf56574
commit 1eb92f6342
3 changed files with 105 additions and 1 deletions

View file

@ -32,7 +32,6 @@
#include "../events/SDL_events_c.h"
#endif
#define MAKE_VIDPID(VID, PID) (((Uint32)(VID))<<16|(PID))
static SDL_bool SDL_joystick_allows_background_events = SDL_FALSE;
static SDL_Joystick *SDL_joysticks = NULL;