RetroDebugger icon indicating copy to clipboard operation
RetroDebugger copied to clipboard

Changing keymap?

Open thecky opened this issue 1 year ago • 1 comments

Hi,

is there a way to change the keymap under linux for the used vice version? I miss several keys (like *, left arrow, ...). In my native vice version the keymapping is fine and can also be altered.

Thx

thecky avatar May 14 '24 18:05 thecky

Yes, in Settings for C64 there's a view to edit keymap, please let me know if that works for you.

slajerek avatar May 14 '24 20:05 slajerek

Yes, there is a entry in the menu ("Keyboard mapping"). But after clicking, no window / view appears on the workspace to change the mapping. There's only a hook at the end of the menuentry and nothing else. Can I enable a logging / verbose mode to track down the problem?

Btw: I use arch-linux

thecky avatar May 15 '24 18:05 thecky

Interesting, then this is a bug. You should see "Keyboard mapping" tool like this:

Screenshot 2024-05-16 at 21 37 24

I wonder if this is related to arch-linux, I've just tested this on macOS and works OK, I'll check this also on Linux.

slajerek avatar May 16 '24 19:05 slajerek

Okay, this screen isn't show. After taking a look into the code, I found two KeyMapping related files: src/Screens/CViewC64KeyMap.cpp (and .h) src/Views/C64/CViewC64KeyMap.cpp (and .h)

The title "C64 Key mapping" from your screenshot is found in the file under "Views/C64". But my build seems to use the code from the Screens-include.

I modified my CMakeLists.txt and replaced the include with the path "src/Views/C64/CVieC64KeyMap.cpp" and after a rebuild, the window is present.

thecky avatar May 18 '24 18:05 thecky

Is this fixed now @thecky ?

slajerek avatar Jun 02 '24 00:06 slajerek

With the fix the keymap is visible and I haven't noticed any other drawback yet. So, if it works / compile on your system everything should be fine and the issue can be closed.

thecky avatar Jun 02 '24 11:06 thecky

Thanks

slajerek avatar Jun 02 '24 19:06 slajerek