http://mcosre.sourceforge.net/docs/KeyMap.html
1/25/2008
D o c u m e n t a t i o nKeyMap ($174) |
||
|
||
"I'll write the damn documentation after I take my shower."
- David M. Krauss
KeyMap: equ $174 * bitmap of keyboard keys up/down, 8 bytes | %0000 0001 | %0000 0100 | %0001 0000 | %0100 0000 | %0000 0010 | %0000 1000 | %0010 0000 | %1000 0000 ===========+==============+==============+==============+============== $174 | [A] | [D] | [H] | [Z] (KeyMap+0) | [S] | [F] | [G] | [X] -----------+--------------+--------------+--------------+-------------- $175 | [C] | [] | [Q] | [E] (KeyMap+1) | [V] | [B] | [W] | [R] -----------+--------------+--------------+--------------+-------------- $176 | [Y] | [1] | [3] | [6] (KeyMap+2) | [T] | [2] | [4] | [5] -----------+--------------+--------------+--------------+-------------- $177 | [=] | [7] | [8] | []] (KeyMap+3) | [9] | [-] | [0] | [O] -----------+--------------+--------------+--------------+-------------- $178 | [U] | [I] | [Return] | [J] (KeyMap+4) | [[] | [P] | [L] | ['] -----------+--------------+--------------+--------------+-------------- $179 | [K] | [\] | [/] | [M] (KeyMap+5) | [;] | [,] | [N] | [.] -----------+--------------+--------------+--------------+-------------- $17A | [Tab] | [`] | [unknown] | [unknown] (KeyMap+6) | [Space] | [Delete] | [Escape] | [Command] -----------+--------------+--------------+--------------+-------------- $17B | [Shift] | [Option] | [unknown] | [unknown] (KeyMap+7) | [Caps Lock]* | [Control] | [unknown] | [unknown] * [Caps Lock] bit is set until the key is pressed again.
Example (PowerPC assembly):
lhz r5,KeyMap+6(r0) * r5: KeyMap+6 ($17A) | KeyMap+7 ($17B)
...
rlwinm r3,r5,24,24,31 * r3: KeyMap+6 ($17A)
clrlwi r4,r5,24 * r4: KeyMap+7 ($17B)