U
    P’“e¸  ã                   @   s   d Z dZG dd„ dƒZdS )zo
Motion Event Factory
====================

Factory of :class:`~kivy.input.motionevent.MotionEvent` providers.
)ÚMotionEventFactoryc                   @   s8   e Zd ZdZi Zedd„ ƒZedd„ ƒZedd„ ƒZdS )	r   zãMotionEvent factory is a class that registers all availables input
    factories. If you create a new input factory, you need to register
    it here::

        MotionEventFactory.register('myproviderid', MyInputProvider)

    c                 C   s   |t j| < dS )z)Register a input provider in the databaseN©r   Ú__providers__)ÚnameÚ	classname© r   ú6/tmp/pip-unpacked-wheel-xzebddm3/kivy/input/factory.pyÚregister   s    zMotionEventFactory.registerc                   C   s   t jS )z%Get a list of all available providersr   r   r   r   r   Úlist   s    zMotionEventFactory.listc                 C   s   | t jkrt j|  S dS )z)Get a provider class from the provider idNr   )r   r   r   r   Úget   s    
zMotionEventFactory.getN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ústaticmethodr   r	   r
   r   r   r   r   r      s   

r   N)r   Ú__all__r   r   r   r   r   Ú<module>   s   