Quick search

Table Of Contents

Triple Tap

バージョン 1.7.0 で追加.

Search touch for a triple tap

class kivy.input.postproc.tripletap.InputPostprocTripleTap[ソース]

ベースクラス: 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)[ソース]

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