Version

Quick search

Triple Tap

New in version 1.7.0.

Search touch for a triple tap

class kivy.input.postproc.tripletap.InputPostprocTripleTap[source]

Bases: builtins.object

InputPostProcTripleTap is a post-processor to check if a touch is a triple tap or not. Triple tap can be configured in the Kivy config file:

[postproc]
triple_tap_time = 250
triple_tap_distance = 20

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

find_triple_tap(ref)[source]

Find a triple tap touch within self.touches. The touch must be not be a previous triple tap and the distance must be within the bounds specified. Additionally, the touch profile must be the same kind of touch.