niw / HapticKey

A simple utility application to trigger haptic feedback when tapping Touch Bar.
MIT License
1.65k stars 62 forks source link

Additional option for when to trigger haptic feedback #18

Open ribrob opened 6 years ago

ribrob commented 6 years ago

Currently there are 2 options to trigger haptic feedback;

  1. All Taps on Touch Bar
  2. Esc and F1, F2, etc. keys

The first Isn't ideal as it means you get fedback when you tap the bar even if there's no button there

The second Is quite limiting, as app-specific Touch Bar buttons do not trigger the haptics

Is it possible to add an option for Taps on any Touch Bar buttons?

This would trigger haptics whenever the user touches a button on the touch bar, but not when they tap an empty area of the bar.

niw commented 6 years ago

Thank you for the feedback! I understand that the difference, but it’s because of the current implementation limitation. I think it’s technically possible, however requires some extra reverse engineering of the Touch Bar private APIs, which I didn’t try yet.

Palisand commented 5 years ago

What about for just the touch bar's "x"?

goranmoomin commented 5 years ago

@niw May I ask if there is any updates?̊̈ I really would like this feature...

niw commented 5 years ago

I explored a way to detect these events from touch bar in different approach such as using IOKit, however not really find a way to do so yet. Since this year at WWDC, they announced new APIs, I will take a look at them as well as testing it on Catalina to figure out the better solution.