]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Missing custom mapping shortname setting.
authorToni Wilen <twilen@winuae.net>
Mon, 26 Feb 2018 18:14:47 +0000 (20:14 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 26 Feb 2018 18:14:47 +0000 (20:14 +0200)
inputdevice.cpp

index df085643d49edc45f0d414ed7e5c63e95182f40c..f780fe4c355c97a56d83e971aa3f19ee423c3c36 100644 (file)
@@ -9004,6 +9004,8 @@ static bool fixjport (struct jport *port, int add, bool always)
                        _tcscpy(port->idc.configname, inputdevice_get_device_unique_name (IDTYPE_MOUSE, vv - JSEM_MICE));
                } else if (vv >= JSEM_KBDLAYOUT && vv < JSEM_CUSTOM) {
                        _stprintf(port->idc.shortid, _T("kbd%d"), vv - JSEM_KBDLAYOUT + 1);
+               } else if (vv >= JSEM_CUSTOM && vv < JSEM_JOYS) {
+                       _stprintf(port->idc.shortid, _T("custom%d"), vv - JSEM_CUSTOM);
                }
                wasinvalid = true;
 #if 0