How to add a new controller to SDL gamecontrollerbd.txt

I have a cheap Chinese Controller that reports as

{ –[[00000188FFE17560]]
gamepad_unknown = true,
gamepad_name = "USB Joystick ",
gamepad_guid = “030000008f0e00000300000000000000”,
userid = 0,
gamepad = 0,
text = "USB Joystick ",
gamepad_guid_info = { –[[00000188FFE175F0]]
vendor = 3727,
bus = 3,
crc = 0,
version = 0,
product = 3
}
}

The GUID is already in the gamecontrollerdb.txt, but the mapping is wrong. I’ve tried to add an extra line for my controller with the same GUID and the controller name to fix the mapping. This does not work. It gives a warning that the GUID is already registered. It seems that only the GUID is checked to find the correct mapping.

Wouldn’t it be better to check for GUID AND controller name in the first step, and if not found, check for the GUID only?

Hi!
The GUID as specified is from SDL public database, so it’s unlikely we’ll change the actual mapping,

You can use the GDC tool to output an SDL compliant entry.

The 030000008f0e00000300000000000000 is the generic fallback (no crc, no version) which may match multiple of their devices. As you see here we mimic SDL in testing different GUID’s.

The device name is part of the CRC in the GUID as seen here.

ok. will check.

Where can I report other new controller mappings? Checking my controllers now.

We accept PR’s on our GitHub