I'm running Aranym 1.1.0 on some Mac laptops with UK keyboards.
My initial problem was that the British keyboard.tbl shipping in Freemint 1.17 just produces gibberish in e.g. qed.
So I started creating my own tbl file using freemint's mktbl, and ended up with something that mostly worked. Except for some important keys - and I noticed Aranym logged
bug("keycode: %d (0x%x), scancode %d (0x%x), keysym '%s' is not mapped",
for each of those keys. The logging was:
keycode: 39 (0x27), scancode 52 (0x34), keysym ''' is not mapped
keycode: 44 (0x2c), scancode 54 (0x36), keysym ',' is not mapped
keycode: 46 (0x2e), scancode 55 (0x37), keysym '.' is not mapped
keycode: 47 (0x2f), scancode 56 (0x38), keysym '/' is not mapped
On UK Mac keyboards, these produce the characters:
So the keyboardTable array in src/input.cpp inside the KEYSYM_MACSCANCODE ifdef is clearly missing those 4 entries. But maybe there's a bigger issue, which has lead to the Freemint British keyboard table not working? I can't be sure if my custom keyboard.tbl is working around something.
Well I say "clearly missing those 4 entries" but they're in the array! So what's going on?