OS_Byte 121 key scan codes
Martin Avison (27) 1494 posts |
I have just come across some code in a program that uses OS_Byte 121 to scan the keyboard. I tries to handle the following codes which I can find no confirmation of their usage… 12 The last 3 seem to be produced with the keys indicated on my Iyonix. Is there a definitive list anywhere? |
Rick Murray (539) 13850 posts |
Either this:
or that:
Both are here, along with other keys (Kana, LidClosed, Brightness Up/Down) that may or may not be supported on your particular version ☺: |
Jeffrey Lee (213) 6048 posts |
For OS_Byte, INKEY, etc. it’s the KeyScan values which you want. The KeyNo values are a different set of definitions which are used by KeyV and the key events; these then get mapped to KeyScan keys by (IIRC) InternationalKeyboard, using different mappings for each keyboard type. |
Martin Avison (27) 1494 posts |
Thanks both – that should provide just what I needed. |