o
    OZŽhž  ã                   @   s†   d Z ddlZddlZddlmZmZ ddlmZ dadd„ Zdd	„ Z	d
d„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdefdd„ZdS )zü
A compatibility shim for pygame.fastevent based on pygame.event.
This module was deprecated in pygame 2.2, and is scheduled for removal in a
future pygame version. If you are using pygame.fastevent, please migrate to
using regular pygame.event module
é    N)ÚerrorÚregister_quit)ÚEventFc                   C   s   t stdƒ‚dS )z,
    Raises error if module is not init
    z fastevent system not initializedN)Ú_ft_initr   © r   r   ú?/var/www/auris/lib/python3.10/site-packages/pygame/fastevent.pyÚ_ft_init_check   s   ÿr   c                   C   s   da dS )z+
    Hook that gets run to quit module
    FN©r   r   r   r   r   Ú
_quit_hook   s   r
   c                   C   s"   t j ¡ s	tdƒ‚ttƒ dadS )z3init() -> None
    initialize pygame.fastevent
    zvideo system not initializedTN)ÚpygameÚdisplayÚget_initr   r   r
   r   r   r   r   r   Úinit    s   
r   c                   C   s   t S )zYget_init() -> bool
    returns True if the fastevent module is currently initialized
    r	   r   r   r   r   r   ,   s   r   c                   C   s   t ƒ  tj ¡  dS )z@pump() -> None
    internally process pygame event handlers
    N)r   r   ÚeventÚpumpr   r   r   r   r   3   s   r   c                   C   ó   t ƒ  tj ¡ S )z*wait() -> Event
    wait for an event
    )r   r   r   Úwaitr   r   r   r   r   ;   ó   
r   c                   C   r   )z/poll() -> Event
    get an available event
    )r   r   r   Úpollr   r   r   r   r   C   r   r   c                   C   r   )z>get() -> list of Events
    get all events from the queue
    )r   r   r   Úgetr   r   r   r   r   K   r   r   r   c                 C   s   t ƒ  tj | ¡ dS )z8post(Event) -> None
    place an event on the queue
    N)r   r   r   Úpost)r   r   r   r   r   S   s   r   )Ú__doc__Zpygame.eventr   Zpygame.displayr   r   r   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s    