lokxii / Mac-trackpad-mapper

A utility for Mac that maps finger position on trackpad to cursor location on Scnreen
MIT License
28 stars 3 forks source link

One more thing #12

Closed e-su closed 1 year ago

e-su commented 1 year ago

I implemented tapping the left or right side of the trackpad to generate the specified event. But the gestures of the system are still there. I have no idea how to disable system mouse click event.

lokxii commented 1 year ago

Do you mean gesture events or mouse click events? You can filter out system mouse click events by tapping into CG event tap. But for gestures I have no idea how to filter / disable it

e-su commented 1 year ago

Yeah, I want to filter out system mouse click events. I saw hookMouseCallback() and loggerCallback(). I modified some of the code, and it worked as expected! Tapping the left or right side of the trackpad to generate the z or x key without system mouse click events. Thanks, you the boss.