title: PyGame any touchscreen
body: <p>I am trying to create a simple program in which a user can move a shape on the screen using his finger (on a touchscreen).</p>
  
  <p>this is my code so far: </p>
  
  <pre><code>import pygame
  
  
  def main():
      pygame.init()
      DISPLAY = pygame.display.set_mode((1000,500),0,32)
      WHITE = (255,255,255)
      blue = (0,0,255)
      DISPLAY.fill(WHITE)
      pygame.mouse.set_visible(False)
      pygame.draw.rect(DISPLAY, blue,(480,200,50,250))
      pygame.display.update()
      pygame.mouse.set_pos(480, 200)
      while True:
          for event in pygame.event.get():
              pos = pygame.mouse.get_pos()
              pygame.draw.rect(DISPLAY, blue, (pos[0]-25,pos[1], 50, 250))
              pygame.display. update()
              DISPLAY.fill(WHITE)
  main()
  </code></pre>
  
  <p>The problem is that when I touch the screen, nothing will happen until I move my finger. If I print the events I can see that there is no event listed until I start moving my finger, so that is probably the reason.</p>
  
  <p>I want to be able to register the finger press (as an event I guess) on the screen even before it starts to move, is there anyway to do this using PyGame?</p>
  
  <p>Thanks.</p>