Is there any documentation on the format of the getevent and sendevent shell commands? specifically the ones for touchevents. or is this device-dependent?
it is a bit hard to guess what those ids are doing.
There is some documentation on the AOSP site:
Plus several Howtos like e.g.
However, the answer to your question on Google Groups states:
That will depend on the factors for the kernel in question:
If this passes the three criteria above, then by reading certain events from
The values are in encoded form, based on the kernel's input structure -
Be careful! Depending on the touchscreen driver used, some, do not actually return the proper coordinates - that's left as an exercise :)
On the Samsung GT-i5500 running Eclair,
Incidentally, I did some work about a year ago, on creating a touchscreen for ClockWorkMod Recovery which can be found over on Modaco.
The real painful part was trying to determine which event was the touchscreen and act on it accordingly which was ported over to Zte Skate, Zte Racer and Samsung GT-i5500.