Revert "Start going through wrapper functions for access to input_device_names"

This reverts commit 92293525c130f202604bcf078f38426c7090d2e0.
This commit is contained in:
twinaphex 2020-07-05 16:41:55 +02:00
parent e8f4db39b2
commit 79cc4f9c4f
3 changed files with 3 additions and 3 deletions

View File

@ -234,7 +234,7 @@ static bool linuxraw_joypad_init(void *data)
path[0] = '\0';
pad->fd = -1;
pad->ident = input_config_get_device_name(i);
pad->ident = input_device_names[i];
snprintf(path, sizeof(path), "/dev/input/js%u", i);

View File

@ -246,7 +246,7 @@ static bool parport_joypad_init(void *data)
struct parport_joypad *pad = &parport_pads[i];
pad->fd = -1;
pad->ident = input_config_get_device_name(i);
pad->ident = input_device_names[i];
snprintf(path, sizeof(path), "/dev/parport%u", i);

View File

@ -162,7 +162,7 @@ static int udev_add_pad(struct udev_device *dev, unsigned p, int fd, const char
unsigned long absbit[NBITS(ABS_MAX)] = {0};
unsigned long ffbit[NBITS(FF_MAX)] = {0};
strlcpy(pad->ident, input_config_get_device_name(p), sizeof(pad->ident));
strlcpy(pad->ident, input_device_names[p], sizeof(pad->ident));
/* Failed to get pad name */
if (ioctl(fd, EVIOCGNAME(sizeof(pad->ident)), pad->ident) < 0)