tslib integration (for >= KitKat)

조회수 75회
읽지 않은 첫 메시지로 건너뛰기

petr....@gmail.com

읽지 않음,
2015. 10. 13. 오전 7:10:4415. 10. 13.
받는사람 android-porting, Petr Vorel
Hi there,

has anyone integrated / ported tslib for Android KitKat, Lollipop or Marshmallow? Or is there better way for adjusting (cropping) touch area (kernel drivers)?

Thanks for any info

Kind regards,
Petr

Martin Fuzzey

읽지 않음,
2015. 10. 17. 오후 5:49:1315. 10. 17.
받는사람 android-porting, petr....@gmail.com
Hi,

Not sure why you need it.

The kernel driver should indicate the touchscreen coordinates corresponding to the corners (eg my controller gives 1024x1024)
The Android input manager then handles the transform between the display coordinates and touchscreen coordinates.

dumpsys input shoud show what it's doing.

One thing to look out for is Android's notion of external and internal input devices.

For example, by default, if you connect a USB touchscreen controller Android will assume it is for an external screen (even if there isn't one) and calculate the transform based on the resolution of this (possibly non existant) screen.
It doesn't do this for touchscreens connected over other interfaces (eg I2C)

I had to modify the input service to add an extra parameter to the .idc file to force certain devices to internal for this case (where the primary touchscreen is on USB)..

Regards, 

Martin
전체답장
작성자에게 답글
전달
새 메시지 0개