# service call window 18 i32 1
To make the keyboard work more nicely, I wrote a short applet to check key events. Scan codes of special keys are
| Keyboard | ||
| OK | 87 | |
| Cancel | 62 | |
| Menu | 88 | |
| Home | 99 | |
| 66 | ||
| Call | 59 | |
| Fn | 61 | |
| Space | 57 | |
| Side Key | ||
| OK | 63 | |
| Cancel | 64 | |
| Up | 66 | |
| Down | 65 |
I add following lines to andriod-root/system/usr/keylayout/qwerty.kl. Well, tentatively.
key 108 DPAD_LEFT
key 103 DPAD_RIGHT
key 105 DPAD_UP
key 106 DPAD_DOWN
key 87 DPAD_CENTER
key 62 BACK
key 88 SOFT_LEFT
key 99 HOME
key 68 ENVELOPE
key 59 EXPLORER
key 63 DPAD_CENTER
key 64 BACK
key 66 VOLUME_UP
key 65 VOLUME_DOWN
key 57 SPACE
key 61 FN
This is not perfect at all. The layout is English keyboard and my Android Zaurus has a Japanese keyboard. Also, Fn-markup does't work. May need to build android-root/system/usr/keychars/zaurus.kcm.bin. I don't know how yet, though.
Next thing is touch pannel. Sometimes it works. Next moment, it doesn't. Very unstable.
Did those key codes actually work for you? I'm trying to do the same for the touch dual.
Thanks a lot!