Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check all international keymap variations #13

Open
borb opened this issue Apr 17, 2022 · 2 comments
Open

Check all international keymap variations #13

borb opened this issue Apr 17, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@borb
Copy link
Owner

borb commented Apr 17, 2022

The Amiga keyboard uses rows/columns to select keycodes, yet still use the same firmware on the 6507 MCU. This means the membrane matrix can add additional keys without needing firmware support. However, we don't have that just yet because a) I don't have a bunch of keyboards of different locales (only UK and US right now) and b) mapping to the Amiga "deadkeys" isn't entirely clear right now.

Commit c916c8e added return-cutout (that's literally what it's called in the developer documentation), and mapped the UK HID \| to the Amiga \| (unfortunately the positioning was ideal for leftshift-cutout, again what it's called in the dev docs). So this means lshift deadkey is currently not mapped to anything.

I'm likely going to need help from Amiga users who have keyboard layouts other than UK & US.

@borb borb added enhancement New feature or request help wanted Extra attention is needed labels Apr 17, 2022
@rfuest
Copy link
Contributor

rfuest commented Apr 17, 2022

I did some more tests and got most of the keys working by changing two HID to Amiga mappings. I'll report back with the exact changes I made once I'm back on my other development machine.

But even after fixing the mapping there were some remaining issues. Some keys on the German layout, like [ and ] are only accessible using the Alt Gr key. On the Amiga keyboard these symbols are located on the upper left corner of the number pad, but these keys aren't available on a PC keyboard. This would be hard to fix in the firmware and is also a problem which exists in emulators like WinUAE. One solution is to load a custom keymap on the Amiga, like the one shipped with WinUAE in the Amiga Programs directory.

@rfuest
Copy link
Contributor

rfuest commented Apr 21, 2022

I had to make these changes to mapHidToAmiga:

mapHidToAmiga[0x31] = AMIGA_INTLRET;
mapHidToAmiga[0x64] = AMIGA_INTLSHIFT;

According to https://deskthority.net/wiki/Scancode 0x31 is always used instead of 0x32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants