From 37392d6efaf328d3ec55b4c1ffd19f94cc7f8408 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 26 Feb 2018 20:14:47 +0200 Subject: [PATCH] Missing custom mapping shortname setting. --- inputdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.3