diff options
| author | Enno Boland <[email protected]> | 2018-06-19 18:55:33 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2018-06-22 00:21:18 +0000 |
| commit | dd6bee81c942c0ea01030da9356026afb88f9d18 (patch) | |
| tree | 97d66349f1ee413c6cb27b60320105a2989b088d /net/unix/garbage.c | |
| parent | Input: elan_i2c_smbus - fix more potential stack buffer overflows (diff) | |
| download | kernel-dd6bee81c942c0ea01030da9356026afb88f9d18.tar.gz kernel-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: [email protected]
Signed-off-by: Enno Boland <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
