Quick search

Double Tap

Search touch for a double tap

class kivy.input.postproc.doubletap.InputPostprocDoubleTap[source]

Bases: builtins.object

InputPostProcDoubleTap is a post-processor to check if a touch is a double tap or not. Double tap can be configured in the Kivy config file:

double_tap_time = 250
double_tap_distance = 20

Distance parameter is in the range 0-1000 and time is in milliseconds.


Find a double tap touch within self.touches. The touch must be not a previous double tap and the distance must be within the specified threshold. Additionally, the touch profiles must be the same kind of touch.