Merge pull request #6059 from fr500/staging

make the hack less specific
This commit is contained in:
Andrés 2018-01-06 15:49:14 -05:00 committed by GitHub
commit 7b040a52b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -910,7 +910,7 @@ static void handle_hotplug(android_input_t *android,
*/
if(strstr(device_model, "SHIELD Android TV") && (
strstr(device_name, "Virtual") ||
strstr(device_name, "NVIDIA Corporation NVIDIA Controller v01.03")))
strstr(device_name, "NVIDIA Corporation NVIDIA Controller v01.0")))
{
/* only use the hack if the device is one of the built-in devices */
RARCH_LOG("Special Device Detected: %s\n", device_model);
@ -940,7 +940,7 @@ static void handle_hotplug(android_input_t *android,
/* apply the hack only for the first controller
* store the id for later use
*/
if (strstr(device_name, "NVIDIA Corporation NVIDIA Controller v01.03")
if (strstr(device_name, "NVIDIA Corporation NVIDIA Controller v01.0")
&& android->pads_connected==0)
pad_id1 = id;
else if (strstr(device_name, "Virtual") && pad_id1 != -1)