3 finger double tap implementation

I'm developer behind Lasso - window manager and a couple of times users were showing me some bug reports/feature request and I noticed that they are using BetterTouchTool. The use-case was pretty simple - they are assigning the shortcut that opens my app to 3-finger double tap gesture. Like that:

So now I'm thinking it would be great to implement it directly in my app so that the user can select wether they want to use a normal shortcut to activate the app window or they can use 3-finger double tap.

@Andreas_Hegenberg could you please maybe point me out to some open source projects where I can learn how to interact with trackpads, or maybe documentation to the API that can do that?

Thanks in advance and best wishes from M√ľnchen :wink: