Skip to content

Add support for Sun Microsystems Help through Cut keys - #6922

Open
DoubleHypercube wants to merge 2 commits into
space-wizards:masterfrom
DoubleHypercube:Stop!
Open

Add support for Sun Microsystems Help through Cut keys#6922
DoubleHypercube wants to merge 2 commits into
space-wizards:masterfrom
DoubleHypercube:Stop!

Conversation

@DoubleHypercube

@DoubleHypercube DoubleHypercube commented Aug 5, 2026

Copy link
Copy Markdown

As far as I can tell we lose nothing by supporting these. Tested on a physical Sun Microsystems Type 7.
Front isn't in here because SDL literally does not have a scancode for that. Our only option is to pound sand, I guess.

While writing this PR I also found that Key.World1 has no associated MapKey call. In theory, we could map it to SDL_SCANCODE_INTERNATIONAL1 - however, at that point, I would personally honestly say we should just map through World9/SDL_SCANCODE_INTERNATIONAL9 as well.

Additionally, LShift/RShift, LAlt/RAlt, and LControl/RControl are not distinguished between L/R positions on the keyboard unlike LSystem/RSystem. Is there a reason for this? On many keyboards they're distinct scancodes - the Type 7 in particular has Right Shift and Right Alt (labeled as Alt Graph).

On the subject of Alt, for some reason Key.Alt is specialcased with #if MACOS in InputDevices. This should really be an OperatingSystem#IsMacOS call, which in fact is used directly above for LSystem/RSystem. Why it is not done this way for Alt? At the very least, both checks should use the same logic.

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.

1 participant