add more model names for Xperia Play hack

This commit is contained in:
Royerson 2018-11-21 14:06:34 -07:00 committed by GitHub
parent b3d38c46aa
commit ba435ce22a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -1057,8 +1057,17 @@ 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_model, "Xperia Play")) &&
else if(
(
strstr(device_model, "R800x") ||
strstr(device_model, "R800at") ||
strstr(device_model, "R800i") ||
strstr(device_model, "R800a") ||
strstr(device_model, "R800") ||
strstr(device_model, "Xperia Play") ||
strstr(device_model, "Play") ||
strstr(device_model, "SO-01D")
) && (
strstr(device_name, "keypad-game-zeus") ||
strstr(device_name, "keypad-zeus") ||
strstr(device_name, "Android Gamepad")