Pygame also comes with Raspbian. To make sure that it's really there start Python interpreter and type the following line at prompt:
import pygame
You shouldn't see any exceptions. If you'll see import exception that means there is no Pygame and it should be downloaded and installed from their web site.
The Raspbian Jessie has some incompatibility issues with SDL 2.x used by Pygame. That makes the touchscreen unusable. The workaround is to get SDL 1.2 from the previous Raspbian version - Wheezy. How to do that was explained here.
The workaround is to create and run the script installsdl.sh:
sudo chmod +x installsdl.sh
sudo ./installsdl.sh
After this step the touchscreen should work properly with Pygame library.
<<Previous | [Next>>](https://github.com/project-owner/Peppy.doc/wiki/Mpd & Mpc)