mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Revert "Start going through wrapper functions for access to input_device_names"
This reverts commit 92293525c130f202604bcf078f38426c7090d2e0.
This commit is contained in:
parent
e8f4db39b2
commit
79cc4f9c4f
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user