antsar / python-turntouch

Python library for the Turn Touch bluetooth smart home remote.
3 stars 1 forks source link

Suppress single press events for double-taps and holds #2

Closed antsar closed 6 years ago

antsar commented 6 years ago

When a button is held or double-tapped, the single-tap event is also fired. This can be confusing/unexpected.

Add a "debouncing" delay before firing single-press events, so the event can be suppressed if a double-press occurs.