Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to limit area where haptics activate? #47

Open
knives-repo opened this issue Mar 21, 2021 · 1 comment
Open

Possible to limit area where haptics activate? #47

knives-repo opened this issue Mar 21, 2021 · 1 comment
Labels

Comments

@knives-repo
Copy link

Hi! I recently found this and was very impressed at the app's functionality. I'm trying to get this to work in tandem with my fork of a touchbar widget app (EnergyBar). I was wondering where in the code I can edit to recompile such that only certain areas of the touchbar will trigger haptics?

@niw
Copy link
Owner

niw commented Mar 22, 2021

I didn’t try though, you can probably modify HTKTapGestureEventListener and filter unwanted NSTouch to not callback event listener.
See https://github.com/niw/HapticKey/blob/master/HapticKey/Classes/HTKTapGestureEventListener.m#L50-L67.

@niw niw added question and removed question labels Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants