summaryrefslogtreecommitdiffstats
path: root/protocol
diff options
context:
space:
mode:
authorJun Wako <wakojun@gmail.com>2015-03-18 15:56:07 +0900
committerJun Wako <wakojun@gmail.com>2015-03-19 06:25:48 +0900
commite3169ccc4550490fa12d0960dbac11cf91f5a1d2 (patch)
tree90fd6fd01bd8639764fee740002b134bed35c545 /protocol
parentc35c4283b9c2c65d62fe8dc5e4b7ca49a8f5af33 (diff)
m0110: Add support for international keyboard
Diffstat (limited to 'protocol')
-rw-r--r--protocol/m0110.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/protocol/m0110.c b/protocol/m0110.c
index 924ec316b8..0d3a5aaa42 100644
--- a/protocol/m0110.c
+++ b/protocol/m0110.c
@@ -502,8 +502,10 @@ MODEL NUMBER:
Scan Code
---------
- m0110_recv_key() function returns following scan codes instead of raw key events.
- Scan codes are 1 byte long and MSB(bit7) is set when key is released.
+ m0110_recv_key() function returns following scan codes instead of M0110 raw codes.
+ Scan codes are 1 byte size and MSB(bit7) is set when key is released.
+
+ scancode = ((raw&0x80) | ((raw&0x7F)>>1))
M0110 M0120
,---------------------------------------------------------. ,---------------.
@@ -529,6 +531,19 @@ Scan Code
| 3A| 37| 31 | 34| 3A| | 52| 41| |
`------------------------------------------------' `---------------'
+ International keyboard(See page 22 of "Technical Info for 128K/512K")
+ ,---------------------------------------------------------.
+ | 32| 12| 13| 14| 15| 17| 16| 1A| 1C| 19| 1D| 1B| 18| 33|
+ |---------------------------------------------------------|
+ | 30| 0C| 0D| 0E| 0F| 10| 11| 20| 22| 1F| 23| 21| 1E| 2A|
+ |------------------------------------------------------ |
+ | 39| 00| 01| 02| 03| 05| 04| 26| 28| 25| 29| 27| 24| |
+ |---------------------------------------------------------|
+ | 38| 06| 07| 08| 09| 0B| 2D| 2E| 2B| 2F| 2C| 0A| 38|
+ `---------------------------------------------------------'
+ | 3A| 37| 34 | 31| 3A|
+ `------------------------------------------------'
+
M0110A
,---------------------------------------------------------. ,---------------.
| `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Bcksp| |Clr| =| /| *|
@@ -568,7 +583,7 @@ Connector:
Signaling:
http://www.kbdbabel.org/signaling/kbd_signaling_mac.png
http://typematic.blog.shinobi.jp/Entry/14/
-Scan Codes:
+M0110 raw scan codes:
Page 22 of Tech Info for 128K/512K
Page 07 of Tech Info for Plus
http://m0115.web.fc2.com/m0110.jpg