<span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)">"get-key-map" is a Forth word that provides a map of all the keys currently pressed on the keyboard. Since it is only used by BootX to determine if one of the shortcuts for verbose or single user mode is pressed. It is a waste of time to provide a full implementation. This just hands out a dummy key map which specifies verbose mode.</span><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div>


<br></div><div>Index: drivers/adb_kbd.c</div><div>===================================================================</div><div>--- drivers/adb_kbd.c<span style="white-space:pre-wrap">      </span>(revision 1041)</div><div>
+++ drivers/adb_kbd.c<span style="white-space:pre-wrap">        </span>(working copy)</div><div>@@ -43,10 +43,13 @@</div><div> </div><div> static void keyboard_read(void);</div><div> </div><div>+static void keyboard_get_key_map(void);</div>


<div>+</div><div> NODE_METHODS( keyboard ) = {</div><div> <span style="white-space:pre-wrap">     </span>{ "open",<span style="white-space:pre-wrap">             </span>keyboard_open<span style="white-space:pre-wrap">           </span>},</div>


<div> <span style="white-space:pre-wrap"> </span>{ "close",<span style="white-space:pre-wrap">            </span>keyboard_close<span style="white-space:pre-wrap">          </span>},</div><div> <span style="white-space:pre-wrap">      </span>{ "read",               keyboard_read<span style="white-space:pre-wrap">         </span>},</div>


<div>+<span style="white-space:pre-wrap"> </span>{ "get-key-map",<span style="white-space:pre-wrap">      </span>keyboard_get_key_map<span style="white-space:pre-wrap">    </span>},</div><div> };</div><div> </div>
<div> /* VT100 escape sequences */</div><div>@@ -566,3 +569,18 @@</div><div> <span style="white-space:pre-wrap">  </span>}</div><div> <span style="white-space:pre-wrap">       </span>PUSH(i);</div><div> }</div><div>+</div>
<div>+static unsigned char fake_keymap[32] = {</div><div>+<span style="white-space:pre-wrap"> </span>0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00,</div><div>+<span style="white-space:pre-wrap"> </span>0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,</div>


<div>+<span style="white-space:pre-wrap"> </span>0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,</div><div>+<span style="white-space:pre-wrap"> </span>0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00 </div><div>+};</div>
<div>+</div><div>+static void keyboard_get_key_map(void)</div><div>+{</div><div>+<span style="white-space:pre-wrap">  </span>/* This is a bit of a hack since BootX requires a get-key-map word.</div><div>+<span style="white-space:pre-wrap">     </span>   In the future this should be changed to give the actual current keymap, </div>


<div>+<span style="white-space:pre-wrap"> </span>   but since this only effects keyboard input in BootX it isn't a priority. */</div><div>+<span style="white-space:pre-wrap">      </span>PUSH( (int)fake_keymap );</div>
<div>+}</div></span>