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

Add SDL mapping for Key 35 (102 key backslash or UK pound key) #7945

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MLSTRM
Copy link

@MLSTRM MLSTRM commented Oct 20, 2022

See #7488
Adding this key entry as Oem8 due to lack of suitable existing mappings in the Oem keys and I wasn't sure it was right to necessarily add a new one for this use case.

The UK keyboard #/~ key maps as key code 35 in SDL due to its internal conversion to ascii, however there is no OEM Pound virtual key, and in native UK keyboard mappings this key maps to OEM 7 (which is OEM Quote in mono's mappings).
By Mapping this key to Oem8 we can allow support for this key in DesktopGL for 102 key users, however it may need to be checked/verified with someone that has a US 102 key layout keyboard to ensure the mapping comes through correctly.

@stromkos
Copy link
Contributor

stromkos commented Jan 3, 2023

Less reliance needs to be made on SDL key mappings. They are not cross platform and skip many non-US keys.

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

Successfully merging this pull request may close these issues.

None yet

2 participants