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

OSX keyboard driver is missing support for the numeric pad "fullstop" key and the (EU) section sign (§) key #1523

Open
dionoid opened this issue Dec 24, 2023 · 1 comment

Comments

@dionoid
Copy link

dionoid commented Dec 24, 2023

While the keyboard drivers for Windows, Linux, X and SDL map the numeric keypad's period/fullstop/delete key to ALLEGRO_KEY_PAD_DELETE, the OSX driver maps it to ALLEGRO_KEY_FULLSTOP. I think this is incorrect and makes it impossible to distinguish between the period/fullstop key on the main keyboard and the one on the numeric keypad.
image
My suggestion is to map this key on OSX to ALLEGRO_KEY_PAD_DELETE, the same way as the other OS's do.

Also on OSX, the Section Sign key (§) - which on European Mac keyboards is located below the Escape key - isn't currently mapped.
image
My suggestion is to map this key to ALLEGRO_KEY_UNKNOWN+0, so al least its key press can be handled.

I'll create a PR if that's OK.

dionoid added a commit to dionoid/allegro5 that referenced this issue Dec 24, 2023
* mapped numeric keypad's period/fullstop/delete key to ALLEGRO_KEY_PAD_DELETE
* mapped section sign (§) key to ALLEGRO_KEY_UNKNOWN+0
@torhus
Copy link

torhus commented Feb 26, 2024

For the record the key below Esc is mapped to TILDE for the US layout, and BACKSPACE with Norwegian layout on my Norwegian keyboard. This is on Windows. Someone with a US keyboard would have to verify the first one, but backspace makes little sense to me. The characters on that key are `~ in US layout, |§ in Norwegian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants