Skip to content

Commit

Permalink
xpadneo: Evade SDL-mismapping once again
Browse files Browse the repository at this point in the history
Switching to PID 0x028E seems to successfully evade the mappings in
Proton, and thus probably SDL.

Proton seems to do the same for Steam virtual controllers, and it
seems to also fix gamepad handling in Chrome.

Maybe-fixes: #379
Maybe-affects: #385
Maybe-affects: ValveSoftware/steam-for-linux#8463 (comment)
See-also: #283
See-also: ValveSoftware/wine@7ea1cc2
Fixes: #373
Signed-off-by: Kai Krakow <kai@kaishome.de>
  • Loading branch information
kakra committed Sep 17, 2022
1 parent 8a6be36 commit 1f6ffe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ static int xpadneo_probe(struct hid_device *hdev, const struct hid_device_id *id
*/
xdata->original_product = hdev->product;
xdata->original_version = hdev->version;
hdev->product = 0x02FD;
hdev->product = 0x028E;
hdev->version = 0x00001130;

if (hdev->product != xdata->original_product)
Expand Down

0 comments on commit 1f6ffe1

Please sign in to comment.