Pygame cursor off position on touchscreen
Posted: Tue Dec 27, 2016 6:19 pm
Ive made a pygame program which displays some buttons to click which then switches some outputs on the gpio via the touchscreen. When I run the program from the raspberry gui it works perfectly no problems. However when I run the python program straight from the command line the cursor is way off.
I created a small test pygame gui with no buttons with the cursor displayed. Just to see where the cursor appears on the screen. When i touch the display its way off from where my finger touches the screen. Its like the screen isnt calibrated however from the raspberry gui it works fine. Could anyone help what might be wrong?
Cheers
I created a small test pygame gui with no buttons with the cursor displayed. Just to see where the cursor appears on the screen. When i touch the display its way off from where my finger touches the screen. Its like the screen isnt calibrated however from the raspberry gui it works fine. Could anyone help what might be wrong?
Cheers