diff options
author | Enno Boland <gottox@voidlinux.eu> | 2018-06-19 20:55:33 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-06-22 02:21:18 +0200 |
commit | dd6bee81c942c0ea01030da9356026afb88f9d18 (patch) | |
tree | 97d66349f1ee413c6cb27b60320105a2989b088d /drivers/input/mouse/psmouse-base.c | |
parent | Input: elan_i2c_smbus - fix more potential stack buffer overflows (diff) | |
download | linux-dd6bee81c942c0ea01030da9356026afb88f9d18.tar.xz linux-dd6bee81c942c0ea01030da9356026afb88f9d18.zip |
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: c1ba08390a8b ("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>
Diffstat (limited to 'drivers/input/mouse/psmouse-base.c')
0 files changed, 0 insertions, 0 deletions