]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - fix GPD Win 2 controller name
authorEnno Boland <gottox@voidlinux.eu>
Tue, 19 Jun 2018 18:55:33 +0000 (11:55 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 22 Jun 2018 00:21:18 +0000 (17:21 -0700)
commit3b43d6a7d7512221deec37900480e8a575ccf766
tree97d66349f1ee413c6cb27b60320105a2989b088d
parentd16635b309158e81aaf2ceedb02d657c73a1ccd9
Input: xpad - fix GPD Win 2 controller name

This fixes using the controller with SDL2.

SDL2 has a naive algorithm to apply the correct settings to a controller.
For X-Box compatible controllers it expects that the controller name
contains a variation of a 'XBOX'-string.

This patch changes the identifier to contain "X-Box" as substring.  Tested
with Steam and C-Dogs-SDL which both detect the controller properly after
adding this patch.

Fixes: d0494d6e5cde ("Input: xpad - add GPD Win 2 Controller USB IDs")
Cc: stable@vger.kernel.org
Signed-off-by: Enno Boland <gottox@voidlinux.eu>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c