This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10615 - Cowon D2 Touchscreen driver
Attached to Project:
Rockbox
Opened by Carsten Schreiter (Kuma76) - Friday, 25 September 2009, 05:35 GMT+2
Last edited by Rob Purchase (shotofadds) - Saturday, 26 September 2009, 19:34 GMT+2
Opened by Carsten Schreiter (Kuma76) - Friday, 25 September 2009, 05:35 GMT+2
Last edited by Rob Purchase (shotofadds) - Saturday, 26 September 2009, 19:34 GMT+2
|
DetailsThis patch (my first one) makes the Cowon D2s touchpad usable. No unintended double touches anymore and only really, really, really rare wrong detections.
While reading the coordinates the touchpad is put into the idle mode, which somehow reduces wrong readings drastically but they still occur. To get rid of them each touch is red five times, the coordinates are sorted and the 3rd value is taken. Additionally this patch adds a dead zone between buttons when the touchsreen is in button mode. Try it out and let me know what you think! |
This task depends upon
Closed by Rob Purchase (shotofadds)
Saturday, 26 September 2009, 19:34 GMT+2
Reason for closing: Accepted
Additional comments about closing: In r22842 & r22843.
Saturday, 26 September 2009, 19:34 GMT+2
Reason for closing: Accepted
Additional comments about closing: In r22842 & r22843.
I will commit this with a couple of changes:
- the 'dead zone' is too large (3% works just as well and results in fewer frustrating "dead" presses)
- the comparator function can be replaced with a simple *(short*)a - *(short*)b
- use the TIME_AFTER macro instead of directly comparing ticks
Thanks!