Merge pull request #7612 from fr500/upstream

xperia play hack
This commit is contained in:
hizzlekizzle 2018-11-18 18:32:11 -06:00 committed by GitHub
commit fbdcb793ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1057,11 +1057,12 @@ static void handle_hotplug(android_input_t *android,
* This device is composed of two hid devices
* We make it look like one device
*/
else if(strstr(device_model, "R800") &&
(
strstr(device_name, "keypad-game-zeus") ||
strstr(device_name, "keypad-zeus")
)
else if((strstr(device_model, "R800") || strstr(device_model, "Xperia Play")) &&
(
strstr(device_name, "keypad-game-zeus") ||
strstr(device_name, "keypad-zeus") ||
strstr(device_name, "Android Gamepad")
)
)
{
/* only use the hack if the device is one of the built-in devices */