PS/2 key code mapping
Cameron Cawley (3514) 164 posts |
I’ve recently opened a merge request with some code cleanup, but I have a few questions relating to the key code mappings:
|
Steve Pampling (1551) 8228 posts |
I think you might find a download of “StrongKey” from Fred Graute’s nice list of apps/utilities Here quite useful. |
nemo (145) 2644 posts |
The Stork keys were:
These were given keycodes in the RISC OS world that were instead used for multimedia keyboards (MMK – mea culpa) and in some cases Japanese keyboards. So “On” had the same code as Japanese backslash and MMK FastForward. “DimBrightness” was the same as MMK “None” (mute). There are of course multiple different types of keyboard code, which vary in width depending on API (see the Internal Key Numbers for that machine I’ve forgotten now that has Power=&211, VerticalLine=&20D etc. Pegasus? RAM failure). The old ‘INKEY’ numbers were similarly extended, but in such a way that they’d fail safely if truncated to 8bit. So there is a method if not a process. The MMK volume INKEYs None, Less and More clash with the Japanese IME keys NoConvert, Convert and Kana for example. My plan to extend internal key codes to 16b (see DeepKeys) and Wimp keypress codes to 32b (so we could have as many virtual keycodes as we wanted) was thwarted by RO4’s Wimp which futzed with the keycodes in order to save a few bytes. Grrr. |
Cameron Cawley (3514) 164 posts |
Thanks, I managed to find a reference for the Stork key codes in the sources, and have updated the MR accordingly. https://gitlab.riscosopen.org/RiscOS/Sources/HWSupport/Portable/-/blob/master/hdr/Portable#L203 There is some overlap with the Pandora keycodes, and some of them clash with more established ones, but it might still be useful to have as a reference.
I’ve given this a go and while it looks like a useful tool, it doesn’t seem to support any of the new keycodes. I’ve emailed the author, so hopefully these might get added at some point. |
nemo (145) 2644 posts |
For completeness (and I don’t know how many of these became standard) the MMK keys are:
|
Cameron Cawley (3514) 164 posts |
I’m assuming that you’re referring to this product: https://web.archive.org/web/20000613214353/http://www.astutegrfx.demon.co.uk:80/cerilica/mmk/index.htm If so, do you know of many applications besides DigitalCD that made use of these keys? |