Trackpad scripting

Is there any way to detect if Trackpad is used? Single tap or double tab or slide finger in Trackpad. I need only one of these.

Using Trackpad button would be probably easier to do, but i hate it because i need to stretch thumb so far away.

This should work automatically without my AppleScript checking it every x seconds.


AppleScript is not able to receive any event notification like ObjC

Out of what is your end goal? curiosity