diff options
| author | Enno Boland <gottox@voidlinux.eu> | 2018-06-19 11:55:33 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-01 09:46:39 +0100 |
| commit | 6541b3b657975944669ab8044f2fc18634ec2435 (patch) | |
| tree | e934128b018573159d217fe185899650635c3c03 /include/linux/debugobjects.h | |
| parent | 3185e5bbde63a0f5d3ecff1b3a34bd5bb72f1209 (diff) | |
Input: xpad - fix GPD Win 2 controller name
[ Upstream commit dd6bee81c942c0ea01030da9356026afb88f9d18 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
