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

Missing key from azerty keyboard #91

Open
jllipatz opened this issue Jan 22, 2023 · 1 comment
Open

Missing key from azerty keyboard #91

jllipatz opened this issue Jan 22, 2023 · 1 comment
Labels
Fidelity Emulation fidelity (vs native builds and/or real hardware)

Comments

@jllipatz
Copy link

Hello,

To use infinite mac,, switching to french keyboard with the appropriate control panel is not enough: the layout of a french PC keyboard is not the same than the french Mac keyboard and a lot of keys are swapped. I fixed that with a special KCHR resource that give me now anyhing I could want to write some code under infinite mac.
But there is still a little default. The key we have on french keyboard for < and > appears to be associated on the PC keyborad with the the key "upper 2" at the left of 0-9 keys, while the key on the PC keyboard for < and > doesn't respond at all and cannot be set to the correct characters in a KCHR.
I suppose that there is somewhere in the emulator something translating raw keyboard codes from PCs into raw keyboard codes for Mac, and there is nothing done for the key that is not working. Possibly it is because that key, between shift and the WXCVBN... row is something that doesn't exist on US keyboard.
Would it be possible to make it available? To my understanding, mac raw key code 0x40 is not used and should not bother other users.

Thanks again.

@jllipatz
Copy link
Author

In /src/emulator/emulator-key-codes.ts, JS_CODE_TO_ADB_KEYCODE adding a line like that could possibly solve the problem;
"IntlBackslash": 0x3F,
I suggested 0x40 but it is associated with a F17 key in the table
Im a not sure of the name but "https://www.toptal.com/developers/keycode" says that the missing key generates a numeric code of 60 on my PC keyboard which seems to be correct according the the fact that the A key returns 65 as expected.

I also noticed that the 'end' key was not responding. This is a bug, due to a mispelling into 'Ebd in the same table .

@mihaip mihaip reopened this Jan 22, 2023
@mihaip mihaip added the Fidelity Emulation fidelity (vs native builds and/or real hardware) label Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fidelity Emulation fidelity (vs native builds and/or real hardware)
Projects
None yet
Development

No branches or pull requests

2 participants