I have a new MacBook Pro, and while I love the touchbar, I really want haptic feedback when I use the ESC key because I can't always tell if I hit it or not.
I've spent a great deal of time trying to get the haptic feedback to work and sadly it only works if you have a finger touching the pad. Works great of course when I am touching it.
Tried with:
[[NSHapticFeedbackManager defaultPerformer] performFeedbackPattern: NSHapticFeedbackPatternGeneric performanceTime: NSHapticFeedbackPerformanceTimeNow];
CGSActuateDeviceWithPattern(cid, 0x0, 6, 0x0);
Which both require a finger to be on the touchpad. I tried to figure out if there was a way for me to tell OSX with an event message that a finger was touching the pad, but I could not figure out how to make this work.
Has anyone tried to do something similar? Has anyone had any success with a fake finger touch on the pad. I also don't know if this is a hardware specific requirement of the touchpad (in that, is the haptic triggered through a hardware check, not software check.). Given that the haptic engine dynamically turns on/off to save on power, I figured that was not the case (as in what the docs say about that).
I did implement a click playing on ESC which works great except when I am muted so other sounds don't come through.
I've also considered flashing something on the screen as a result of ESC hit as well (subtle of course).
But even beyond this, if I wanted to ask Apple about access into this functionality if it doesn't exist, where do I go for that?
Thanks!
Rick