eGalax touchscreen calibration
|
7th Jun, 2013, 12:34 AM
Post: #73
|
|||
|
|||
RE: eGalax touchscreen calibration
OK, so you need to keep swap_axes = 1,
this should gives you the correct movement, albeit in the wrong direction. So next get the direction correct: the equation, is desired pointer_position = constant - (scale-factor*reported-touch-position) - constant the first constant is fixed at " the graphicsContext.GetWidth() value . You can find this by using the debugging 'true' in addon.xml and then moving mouse to maximum screen positions in xbmc. The display at the top will show pointer x,y values. So, now you should know the value used internally in xbmc, the sign of the scale factor will add/subtract the scaled touch position, so you need the correct 'calib_y_d' value, in theory should be the same as the first constant , but you can change to bring the pointer back in place. Initially set this the same as the maximum pointer values on screen. The formula in xbmc was written by Andrei, it doesn't need the initial constant really. If you cannot see pointer, at least the reported position may give you an indication that the hardware is working (as an aside, I've been looking into opengalax or python-uinput-mapper and python-evdev. these run as a daemon and remap the evdev egalax input/event to another uinput device which drive xbmc; advantages are by using a user generated input/event, it sorts the calibration externally to xbmc and allows for calibration parameters and possibly right-click) |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[PROBLEM] Touchscreen calibration is wrong and i'm going crazy. | wash | 5 | 19,030 |
17th Jan, 2015 10:34 PM Last Post: wash |
|
Tutorial: Touchscreen calibration & extra features | Markamc | 0 | 7,327 |
2nd Jul, 2013 12:11 AM Last Post: Markamc |