mdqinc / SDL_GameControllerDB

A community sourced database of game controller mappings to be used with SDL2 Game Controller functionality
http://libsdl.org
zlib License
1.38k stars 520 forks source link

Added Generic X-Box pad mapping for linux #780

Closed neyhden closed 3 months ago

neyhden commented 3 months ago

Missing mapping for the Generic X-Box pad on linux, found the issue using the Godot game engine and created the mapping using AntiMicroX using the Godot UUID for the controller. Could solve the issue adding the line:

Input.add_joy_mapping("030000004b2900000430000011000000,Generic X-Box pad,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b6,start:b7,guide:b8,leftshoulder:b4,rightshoulder:b5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,", true)

So I guess it should work correctly

offalynne commented 3 months ago

Please post a photo or link depicting the gamepad product you authored this mapping for

neyhden commented 3 months ago

Here's the link: https://www.game.es/ACCESORIOS/CONTROLLER/XBOX-SERIES-X/CONTROLLER-CON-CABLE-SNAKEBYTE-RGB-X-GRIS--LICENCIA-OFICIAL-/224388

And here's a photo just in case: image