I use a 2 finger tap for "Left Mouse Button down" because I don't like the default macos drag & drop options (1 finger, 3 finger). I have a 2 finger click for "Left Mouse Button up".
What I would prefer is to use the same gesture (2 finger tap) for both mousedown and mouseup. That should be a conditional statement but i can't figure it out how to do it.
tell application "BetterTouchTool"
set clickState to get_number_variable "ClickState"
if clickState is 0 then
set_number_variable "ClickState" to 1
trigger_named_async_without_response "mouse_down"
else
set_number_variable "ClickState" to 0
trigger_named_async_without_response "mouse_up"
end if
end tell