1 2 3 4 5 6 7 | /* !!! FIXME: only finds sticks if they're called /dev/input/event[0..31] */ /* !!! FIXME: we could at least readdir() through /dev/input...? */ /* !!! FIXME: (or delete this and rely on libudev?) */ for (i = 0; i < 32; i++) { SDL_snprintf(path, SDL_arraysize(path), "/dev/input/event%d", i); MaybeAddDevice(path); } |