When the serial port is put on line, the keyboard emits:
0xf9 0xfb
When a key is pressed down, the key board emits a scancode. When a key is released, the keyboard emits the same scancode with an extra bit set. When the last key is released, the release scancode is doubled. (all in hex) Combination presses (such as lctrl+a) then look like this:
1a 11 91 9a 9a
Hence a release scancode can be ignored if the key is already considered released. Holding a key down does not repeat the scan code. These scan codes were recorded from a Visor Handspring using the Targus Stowaway keyboard, using a terminal program on the Visor.
文章评论(0条评论)
登录后参与讨论