HapticKey icon indicating copy to clipboard operation
HapticKey copied to clipboard

Haptic feedback only on touch-down event?

Open chrisballinger opened this issue 7 years ago • 5 comments

I'm curious if you've tried only doing the feedback on touch-down only, and not on touch-up.

If I touch the key fast enough I only seem to get the touch-down feedback, which makes the response feel inconsistent sometimes. Then I started wondering what it felt like if was possible to only send one haptic event instead of two.

chrisballinger avatar Jan 19 '18 00:01 chrisballinger

It is using both touch down and up and triggers different type of haptic feedbacks, as long as these two events are not happening in a very short period, which is 50ms now. This is intentional implementation to address #3.

I think it’s reasonable behavior, however this is fixed value so we may want to adjust or make it configurable.

niw avatar Jan 19 '18 00:01 niw

For quick taps, personally, I find one key stroke (down) more natural with a better feeling. I have added three more cases to the app such as Down/Up key event (default), Down Key event or Up key event to keep experimenting.

munsuri avatar Jan 23 '18 23:01 munsuri

@munsuri can you create also a pull request for your changes?

muescha avatar Jan 29 '18 23:01 muescha

It'd be nice to have this be configurable, as I'd prefer a much longer time. Asking the user to rebuild seems like kinda a hassle. I'd love to contribute, but Objective-C is unfortunately outside my wheelhouse for now.

JMY1000 avatar Apr 22 '18 21:04 JMY1000

I played around with the kMinimumActuationInterval a bit and found that 200ms gives a pretty good experience for me personally. Anything longer, I experience as a proper key press that should have down and up feedback. Anything shorter, I experience as a tap, for which a single feedback is sufficient.

Also, major thumbs up to @niw for making this easy to compile (without any Ruby or XCode experience)!

DennisSchiefer avatar Nov 05 '20 20:11 DennisSchiefer