Hi this is not a direct-fb related message, but. I have a tablet that even if linux creates the /dev/input/eventX for the touchscreen, the ts is not calibrated, by that I mean that it is actually rotated in relation with the screen (you have to swap the x with y and mirror the new y and then you have to scale it). To make the story short. I've made a *universal* ts calibration application, it is a daemon that will clone the ts event file and create a user input device that will output calibrated coordinates. The calibration is done by an affine transformation matrix. It is the most generic calibration (it can scale, translate and rotate all at the same time) that I know. Unless your ts have some logarithmic scale. It is also efficient, it does only 2 multiplication and 3 addition per event processed. You can download it from: http://downloads.sourceforge.net/tabletvk/calibrater-0.9.tgz
PS: by touchscreen I mean any device that have EV_ABS event capability and the transformation is done on ABS_X adn ABS_Y, any other events are forwarded directly and without any change. _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
