The diagram below shows the Mac keyboard followed by my Chromebook key assignment (as shown by Key Caps) followed by the keycode used in the BasiliskII_keycodes file.Ronald P. Regensburg wrote: ↑Sun Jun 20, 2021 11:43 am No, the Mac keycode for Option is 58 and the Mac keycode for Command is 55. Maybe you mixed up the names for the Mac modifier keys?
Code: Select all
Macintosh: Control | Option | Command | Space bar | Command | Option | Control
Chromebook: LCTRL | x | LALT | x | RALT | RCTRL | x
Keycode: 54 | x | x | x | 58 | 55 | x
I hope this shed some light in fine-tuning Basilisk's SDL2 keybindings.
You are correct. I "disabled" this keycode but it seems that it is still assigned the COMMAND keycode "naturally". Linux intercepts this key for the i3 windows manager but for non-i3 keybindings it works as COMMAND. For example, LALT+Q quits the current Mac OS application.Apparently your Left Alt key cannot be used because it is intercepted by the host.
Note that for the FORWARD_SLASH, QUESTION_MARK, and DEGREE symbols, I mapped it to the CONTROL modifier plus letters Q, W, and E respectively as those keys were unused. Inside Basilisk I would access them with CONTROL but in Linux I would access them with the standard ALT_GR key.Extensive documentation about SD2 scancodes and differences between ISO and ANSI keyboards and different language layouts can be found here: https://www.libsdl.org/tmp/SDL/include/SDL_scancode.h
No mention of ABNT2 keyboards, but it seems similar to ISO keyboards as it has the "Non-US Backslash" key in the lower left corner.