Ok, so i began porting Froyo to the Legend this morning.
So far ok, It boots.
But the touch screen does not respond? I can use the optical pad to select things, i can recieve calls. but that is it. I need to use the touch screen to test if other things work.
Any hints?
Hello,
You seem to be doing an interesting attempt.

In the case of HTC Legend, I think that the touchpanel control-codes are different from other devices. (such as Nexus One
----
# getevent &
...
add device 6: /dev/input/event1
name: "synaptics-rmi-touchscreen"
...
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8ddb05f5
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8de005f3
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8df305f3
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8df305f5
...
----
Basically, most case of multi-touch-type, touchpanel drivers report 0x35(MT_POSITION_X)/0x36(MT_POSITION_Y) and more.
However, Legend's one reports only 0x3a(MT_AMPLITUDE)/0x39(MT_POSITION).
According to the source code of AOSP, these control codes are NOT DEFINED in RawInputEvent.java.
Therefore, there are two solutions.
1. Modify the kernel driver (synaptics_i2c_rmi.c) and rebuild
with CONFIG_TOUCHSCREEN_COMPATIBLE_REPORT.
# however, i'm afraid that it is enough...
2. Modify RawInputEvent.java and KeyInputQueue.java
to let Android to receive control codes(0x3a/0x39).
# Now it cannot test because FroYo has not been released yet but it is effective in AOSP Eclair on Legend.
Thanks,
k-yosa