A tiny C++ Haptic Feedback library for Mac trackpads!
HapticMacos takes advantage of Swift/C++ Interop to call AppKit APIs and trigger haptic feedback.
HapticMacos is very easy to use! This is a basic example:
#include "HapticMacos.hpp"
int main() {
FeedbackPerformer performer;
performer.Perform(FeedbackType::Generic);
return 0;
}
You can find more examples in the tests/
folder.