Quick search

Table Of Contents

Source code for kivy.input.provider

Motion Event Provider

Abstract class for the implementation of a
provider. The implementation must support the
:meth:`~MotionEventProvider.start`, :meth:`~MotionEventProvider.stop` and
:meth:`~MotionEventProvider.update` methods.

__all__ = ('MotionEventProvider', )

[docs]class MotionEventProvider(object): '''Base class for a provider. ''' def __init__(self, device, args): self.device = device if self.__class__ == MotionEventProvider: raise NotImplementedError('class MotionEventProvider is abstract')
[docs] def start(self): '''Start the provider. This method is automatically called when the application is started and if the configuration uses the current provider. ''' pass
[docs] def stop(self): '''Stop the provider. ''' pass
[docs] def update(self, dispatch_fn): '''Update the provider and dispatch all the new touch events though the `dispatch_fn` argument. ''' pass