xperia play hack

This commit is contained in:
radius 2018-11-18 17:34:54 -05:00
parent 7d35bd1649
commit 390c9a4dde

View File

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