From c2d26cfb2398c10cd7fdd79edbb8122f4186c4a8 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 2 Jul 2015 14:28:38 +0100 Subject: [PATCH] Fix input on KitKat for S7800B and other devices with a VID or PID of 0 --- input/drivers/android_input.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/input/drivers/android_input.c b/input/drivers/android_input.c index 49ff3f4d90..720cc9e61c 100644 --- a/input/drivers/android_input.c +++ b/input/drivers/android_input.c @@ -278,11 +278,7 @@ static bool android_input_lookup_name(char *buf, goto error; CALL_INT_METHOD(env, *vendorId, device, getVendorId); - if (!*vendorId) - { - RARCH_ERR("Failed to find vendor id for device ID: %d\n", id); - goto error; - } + RARCH_LOG("device vendor id: %d\n", *vendorId); getProductId = NULL; @@ -292,11 +288,7 @@ static bool android_input_lookup_name(char *buf, *productId = 0; CALL_INT_METHOD(env, *productId, device, getProductId); - if (!*productId) - { - RARCH_ERR("Failed to find product id for device ID: %d\n", id); - goto error; - } + RARCH_LOG("device product id: %d\n", *productId); return true;