总结On EVMs we pass the calibrated values(or let us say hardcoded values
for Xmin/max,Ymin/max and XY resolution) from the driver to the user
space.
…Raw events are handled here
frameworks/base/libs/ui/inputReader.cpp
SingletouchinputMapper::process(const RawEvent* rawEvent)
will process
raw events for a Single touch device. ABS_X and ABS_Y are the values
passed from driver and these are the absolute coordinates in our
case as I told you in my earlIEr mail.Correct me if I’m wrong,afaik AndroID phones have no mechanism to do
calibration from user space. It is a sort of standard in AndroID
phones to send the calibrated values from driver itself.What I suggest is,use tslib to calibrate and let it store values in /etc/pointercal. In
SingletouchinputMapper::sync(nsecs_t when)
calculate the absolute coordinates by parsing the values from /etc/pointercal file.
以上是内存溢出为你收集整理的触摸屏校准值,如何在Android /内核中完成?全部内容,希望文章能够帮你解决触摸屏校准值,如何在Android /内核中完成?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)