Package: libsdl1.2debian Version: 1.2.15-10 I'm using pygame to build a touch interface on my raspberry pi. When using wheezy touch events comming from TSLIB are working fine. example:
TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_print 1441449323.448723: 214 130 223 1441449323.459906: 212 129 223 1441449323.459906: 211 129 223 1441449323.478697: 214 129 224 1441449323.488683: 214 130 225 1441449323.488683: 214 130 226 1441449323.498689: 215 131 226 1441449323.508699: 214 132 227 1441449323.528272: 216 142 0 translates to pygame.mouse.get_pos() (215, 131) in jessie I get the following. TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_print 1441449458.971298: 241 152 227 1441449458.991297: 241 151 227 1441449459.011300: 244 151 225 1441449459.011300: 245 151 224 1441449459.030912: 259 158 0 translates to pygame.mouse.get_pos() (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (178, 319) (193, 319) (193, 319) (193, 319) (193, 319) (193, 319) (193, 319) (193, 319) (193, 319) So I get many more events from SDL and wrong positions. When I build libsdl 1.2.15 from source I get the expected behaviour. Also when installing the wheezy package on jessie the coords are correct. Problem is also described here: https://forums.adafruit.com/viewtopic.php?f=47&t=76169&p=404358