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?