func_event_postevent.rst 698 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. _func_event_postevent:
  2. =========
  3. PostEvent
  4. =========
  5. PostEvent -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. PostEvent( event:TEvent,update=False )
  10. Post an event to the event queue
  11. #PostEvent adds an event to the end of the event queue.
  12. The @update flag can be used to update an existing event. If @update is True
  13. and an event with the same @id and @source is found in the event
  14. queue, the existing event will be updated instead of @event
  15. being added to the event queue. This can be useful to prevent high frequency
  16. events such as timer events from flooding the event queue.
  17. Parameters
  18. ==========
  19. Return Values
  20. =============
  21. Nothing.
  22. Examples
  23. ========
  24. See Also
  25. ========