title: PyGame Custom Event
body: <p>I want to ask about the use of custom events in pygame ..
  <br>
  I experimented a little with pygame, so I know how usual pygame-generated events works ..
  <br>
  <i>My Question is</i>, why would anyone be interested in a user event, <b>does it help simplify <br>
  combined pygame-events</b> ? And <b>how would someone implement it</b>, and <i>benefit from <br>it</i> in a real world example .. ?
  <br></p>
  
  <h2>I found an example in <a href="https://rads.stackoverflow.com/amzn/click/com/1590598725" rel="noreferrer" rel="nofollow noreferrer">a book I have been reading lately</a> ..</h2>
  
  <pre><code># creating the event
  CATONKEYBOARD = USEREVENT+1
  my_event = pygame.event.Event(CATONKEYBOARD, message="Bad cat!")
  pygame.event.post(my_event)
  
  # handling it
  for event in pygame.event.get():
      if event.type == CATONKEYBOARD:
          print event.message
  </code></pre>
  
  <p><br>
  I tried it, and I found that the event generates only one time <i>(as soon as it gets posted)</i><br> Can anybody explain things to me .. ?<br><br>Thanks ..</p>