Fixed bug where a Logitech wireless keyboard with built-in mouse touchpad didn't get recongized as both devices.

This commit is contained in:
Sam Lantinga 2013-10-05 21:15:55 -07:00
parent 529664278f
commit 90a219a375
5 changed files with 134 additions and 188 deletions

View file

@ -29,17 +29,10 @@
#include "SDL_events.h"
#include <sys/stat.h>
typedef enum
{
SDL_EVDEV_DEVICE_MOUSE = 0x0001,
SDL_EVDEV_DEVICE_KEYBOARD
} SDL_EVDEV_deviceclass;
typedef struct SDL_evdevlist_item
{
char *path;
int fd;
SDL_EVDEV_deviceclass devclass;
struct SDL_evdevlist_item *next;
} SDL_evdevlist_item;