-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
For a BLE mouse the HOLD feature is not needed.
Instead, the PRESSED and RELEASED events should be passed to as BleMouse.press() and .release() respectively.
When in HOLD, RELEASED event is no longer sent.
I see following solutions:
- RELEASED event is sent irregardless if HOLD is detected -> would trigger two events :-(
- document that holdThreshold can be set to 0 and register for PRESSED and HOLD_RELEASED -> should work, but naming is not intuitive
- set holdThreshold to MAX_INT -> not clean but should be safe in practice
- register for both RELEASED and HOLD_RELEASED -> code duplication
- change library to holdThreshold can be set to 0 (or -1) to allow disabling hold completely -> seems cleanest
I'll go for 3 for now.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels