Skip to content

Commit 56f273b

Browse files
committed
Put in the Nvidia Shield hack back in for Shield Portable
explicitly
1 parent a065ef1 commit 56f273b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

input/drivers/android_input.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,12 +637,13 @@ static void handle_hotplug(android_input_t *android,
637637
strlcpy(name_buf, "PlayStation3", sizeof(name_buf));
638638
else if (strstr(device_name, "MOGA"))
639639
strlcpy(name_buf, "Moga IME", sizeof(name_buf));
640-
else if (strstr(device_name, "NVIDIA Controller"))
640+
else if (strstr(device_name, "NVIDIA Corporation NVIDIA Controller v01.01"))
641641
{
642642
/* Shield is always user 1. FIXME: This is kinda ugly.
643643
* We really need to find a way to detect useless input devices
644644
* like gpio-keys in a general way.
645645
*/
646+
*port = 0;
646647
strlcpy(name_buf, device_name, sizeof(name_buf));
647648
}
648649
else if (device_name[0] != '\0')

0 commit comments

Comments
 (0)