I've got a fullscreen pygame app being run on boot, and it looks like the touch coords it gets immediately after boot are bad.
pos = pygame.mouse.get_pos()
For instance, if I touch in the center of the screen, it appears to treat that as 0,0. As if that was the top left corner of the screen, and touching down or right of that point gives coordinates relative to that first touch.
But touching above or left of that point seems to reset the origin to that point.
If I start by taking my finger at the top left, and swiping diagonally down to the bottom right, that appears to "calibrate" the screen and all touch coordinates are correct after that.
Has anyone else seen this behavior? Any tips or ideas?
The only thing I can think is maybe it's because I'm having the app start up pretty early in the boot sequence, before gnome even. (I'm running Raspbian latest, all updated)