From: Toni Wilen Date: Mon, 26 Feb 2018 18:14:47 +0000 (+0200) Subject: Missing custom mapping shortname setting. X-Git-Tag: 4000~161 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=37392d6efaf328d3ec55b4c1ffd19f94cc7f8408;p=francis%2Fwinuae.git Missing custom mapping shortname setting. --- diff --git a/inputdevice.cpp b/inputdevice.cpp index df085643..f780fe4c 100644 --- a/inputdevice.cpp +++ b/inputdevice.cpp @@ -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