func_event_pollevent.rst 515 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .. _func_event_pollevent:
  2. =========
  3. PollEvent
  4. =========
  5. PollEvent -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. PollEvent()
  10. Get the next event from the event queue
  11. #PollEvent removes an event from the event queue and updates the #CurrentEvent
  12. global variable.
  13. If there are no events in the event queue, #PollEvent returns 0.
  14. Parameters
  15. ==========
  16. Return Values
  17. =============
  18. The id of the next event in the event queue, or 0 if the event queue is empty
  19. Examples
  20. ========
  21. See Also
  22. ========