title: PyGame and touchscreen
body: <p>I've made a pygame GUI interface with buttons who are activated when the user click on them. The GUI works well when i'm using my real mouse but when I run the GUI on the PITFT (<a href="https://www.adafruit.com/product/1601" rel="nofollow">https://www.adafruit.com/product/1601</a> ), buttons do not respond to clicks ( even if i use a harder material than my finger like a stylus ).</p>
  
  <p>So the question is : Are Pygame click event compatible with the PITFT or are there a kind of "special" event made for it ?</p>
  
  <p>Here is the current mouse event i use in my code :</p>
  
  <pre><code>def run(self):
    """Lance la boucle principale pour gérer les événements
    """
    while True:
       event = pygame.event.wait()
  
       if event.type == MOUSEBUTTONDOWN and event.button == 1 and not self.keep_level_2:
          self.click(event.pos)
  
       elif event.type == MOUSEBUTTONUP and event.button == 1:
          self.release(event.pos)`
  </code></pre>
  
  <p>I shearch on the internet and found that in order to use the PiTft, you need to add the following lines :</p>
  
  <pre><code>os.environ['SDL_VIDEODRIVER'] = 'fbcon'
  os.environ["SDL_FBDEV"] = "/dev/fb1"
  os.environ["SDL_MOUSEDEV"] = "/dev/input/touchscreen"
  os.environ["SDL_MOUSEDRV"] = "TSLIB"
  </code></pre>
  
  <p>So i've tried adding them but the touchscreen is still not responding.</p>
  
  <p>Also, when to program run, i can't quit it ( CTRL C and escape don't work ).</p>
  
  <p>Note : My code is not running in python 3</p>