Skip Navigation

Haptic question

I'm thinking of implementing a new feature for Thumb-Key: richer haptic feedback that will make it easier for users to blind-type.

While reviewing the current places where Thumb-Key already performs haptic feedback, I noticed something strange.

When doing a long-press gesture, there are two moments of haptic feedback. First is when the finger initially touches the keyboard key, and second when enough time has passed for the press gestured to be registered as a long press. The second haptic feedback is noticeably stronger than the first.

However, as far as I can tell, both events call the exact same function with the same parameter for both events:

 kotlin
    
view.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP)

  

So how come the second feedback is stronger than the first?


Here is the code for initial press.

And here is the code for the long press.

Comments

5