Double Tap: search touch for a double tap

Double Tap: search touch for a double tap

class pymt.input.postproc.doubletap.InputPostprocDoubleTap

Bases: object

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

[pymt]
    double_tap_time = 250
    double_tap_distance = 20

Distance parameter is in 0-1000, and time is in millisecond.

find_double_tap(ref)

Find a double tap touch within self.touches. The touch must be not a previous double tap, and the distance must be ok

Previous topic

Dejitter: Prevent blob jittering.

Next topic

Ignore list: ignore touch in some part on screen

This Page