From 6659c6af3a30017d33fe9efd8fa18895e7544442 Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Mon, 13 Feb 2017 21:52:53 +0000 Subject: [PATCH] Fix dualshock 3 detection bug --- tasks/task_autodetect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/task_autodetect.c b/tasks/task_autodetect.c index be79f38c95..cbbb43d5b8 100644 --- a/tasks/task_autodetect.c +++ b/tasks/task_autodetect.c @@ -124,8 +124,7 @@ static int input_autoconfigure_joypad_try_from_conf(config_file_t *conf, score += 2; else { - if ( !string_is_empty(ident) - && string_is_equal(params->name, ident)) + if (strstr(params->name, ident)) score += 1; }