WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 45 forks source link

No translation for key #454

Open TNTPro opened 1 year ago

TNTPro commented 1 year ago

Hi, Just found JoystickGremlin a couple of weeks ago. Best software of it's type that I have found. Great job. I'm getting an error in my log about "No translation for key......". These keys still seem to work, but the keycode is displayed instead of the actual key name.

Here is the log: 2022-10-10 15:13:25 INFO Initializing joystick devices 2022-10-10 15:13:25 DEBUG 6 joysticks detected 2022-10-10 15:13:25 DEBUG Added: name=vJoy Device guid={1175FAF0-4351-11ED-8004-444553540000} 2022-10-10 15:13:25 DEBUG Added: name=vJoy Device guid={FC63CC60-6C13-11EC-8002-444553540000} 2022-10-10 15:13:25 DEBUG Added: name=vJoy Device guid={1F64FC80-428C-11ED-8003-444553540000} 2022-10-10 15:13:25 DEBUG Added: name=vJoy Device guid={1175FAF0-4351-11ED-8002-444553540000} 2022-10-10 15:13:25 DEBUG Added: name=FANATEC Wheel guid={B4E367B0-3338-11EC-8001-444553540000} 2022-10-10 15:13:25 DEBUG Added: name=FANATEC Wheel guid={B4E38EC0-3338-11EC-8002-444553540000} 2022-10-10 15:13:25 DEBUG vJoy guid={1175FAF0-4351-11ED-8004-444553540000}: (7, 128, 1) 2022-10-10 15:13:25 DEBUG vJoy guid={FC63CC60-6C13-11EC-8002-444553540000}: (0, 128, 0) 2022-10-10 15:13:25 DEBUG vJoy guid={1F64FC80-428C-11ED-8003-444553540000}: (1, 128, 0) 2022-10-10 15:13:25 DEBUG vJoy guid={1175FAF0-4351-11ED-8002-444553540000}: (2, 128, 0) 2022-10-10 15:13:25 DEBUG vjoy id 1: (7, 128, 1) - MATCH 2022-10-10 15:13:26 DEBUG vjoy id 2: (0, 128, 0) - MATCH 2022-10-10 15:13:26 DEBUG vjoy id 3: (1, 128, 0) - MATCH 2022-10-10 15:13:26 DEBUG vjoy id 4: (2, 128, 0) - MATCH 2022-10-10 15:13:26 INFO Checking vJoy installation 2022-10-10 15:13:26 INFO Initializing plugins 2022-10-10 15:13:26 DEBUG Loaded: cycle-modes 2022-10-10 15:13:26 DEBUG Loaded: description 2022-10-10 15:13:26 DEBUG Loaded: macro 2022-10-10 15:13:26 DEBUG Loaded: map-to-keyboard 2022-10-10 15:13:26 DEBUG Loaded: map-to-mouse 2022-10-10 15:13:26 DEBUG Loaded: noop 2022-10-10 15:13:26 DEBUG Loaded: pause 2022-10-10 15:13:26 DEBUG Loaded: play-sound 2022-10-10 15:13:26 DEBUG Loaded: previous-mode 2022-10-10 15:13:26 DEBUG Loaded: remap 2022-10-10 15:13:26 DEBUG Loaded: response-curve 2022-10-10 15:13:26 DEBUG Loaded: resume 2022-10-10 15:13:26 DEBUG Loaded: split-axis 2022-10-10 15:13:26 DEBUG Loaded: switch-mode 2022-10-10 15:13:26 DEBUG Loaded: temporary-mode-switch 2022-10-10 15:13:26 DEBUG Loaded: text-to-speech 2022-10-10 15:13:26 DEBUG Loaded: toggle-pause 2022-10-10 15:13:26 DEBUG Loaded: basic 2022-10-10 15:13:26 DEBUG Loaded: chain 2022-10-10 15:13:26 DEBUG Loaded: double_tap 2022-10-10 15:13:26 DEBUG Loaded: hat_buttons 2022-10-10 15:13:26 DEBUG Loaded: smart_toggle 2022-10-10 15:13:26 DEBUG Loaded: tempo 2022-10-10 15:13:26 ERROR No translation for key 0xf9 available 2022-10-10 15:13:26 ERROR No translation for key 0xfb available 2022-10-10 15:13:26 ERROR No translation for key 0x2f available 2022-10-10 15:13:26 ERROR No translation for key 0x7c available 2022-10-10 15:13:26 ERROR No translation for key 0x7d available 2022-10-10 15:13:26 ERROR No translation for key 0x7e available 2022-10-10 15:13:26 ERROR No translation for key 0x7f available 2022-10-10 15:13:26 ERROR No translation for key 0x80 available 2022-10-10 15:13:26 ERROR No translation for key 0x81 available 2022-10-10 15:13:26 ERROR No translation for key 0x82 available 2022-10-10 15:13:26 ERROR No translation for key 0x83 available 2022-10-10 15:13:26 ERROR No translation for key 0x84 available 2022-10-10 15:13:26 ERROR No translation for key 0x85 available 2022-10-10 15:13:26 ERROR No translation for key 0x86 available 2022-10-10 15:13:26 ERROR No translation for key 0x87 available 2022-10-10 15:13:27 INFO Gremlin UI created 2022-10-10 15:13:27 INFO Gremlin UI launching

These keys are actually: key 0xf9 = EraseEof key 0xfb = Zoom key 0x2f = Help key 0x7c = F13 key 0x7d = F14 key 0x7e = F15 key 0x7f = F16 key 0x80 = F17 key 0x81 = F18 key 0x82 = F19 key 0x83 = F20 key 0x84 = F21 key 0x85 = F22 key 0x86 = F23 key 0x87 = F24

Hope this helps.

WhiteMagic commented 1 year ago

Hmm, that's interesting, those are all the odd keys that most keyboards don't have anymore. The translation is Gremlin using the keymap used by the system to get the correct label for a key. For example, the same key on a US vs German keyboard layout could be a Y or a Z and this takes care of showing whatever is appropriate for the keyboard layout selected in Windows.

I might have to hardcode those in as well since Windows doesn't seem to have those available.