Simulating two finger swipe

Hey! I'm interested in bind a mouse button to behave like a two finger swipe when held. Is this possible? I looked in both the mouse click options section, as well as the mimicking standard gestures section, but there was only a 3-finger swipe, not a 2 finger one.

I found a ton of documentation online for going from a 2 finger gesture to an action, but Im interested in going the other way, from an action (mouse button drag) to a 2 finger gesture.

unfortunately there are no API's for creating gestures programatically. However many use cases can be simulated using other means (e.g. assigning keyboard shortcuts or using the predefined action "trigger menubar menu-item)

I need this. To hide an alert notification (slide it into the notification center and off the banner spot). The ONLY way to do this is to click and drag right on it, or to use the trackpad with two fingers to swipe it to the right (both perform the same mysterious OS action for the particular Alert).

Why does BTT only have a 3F swipe, not 2F and 4F?

Why does BTT only have a 3F swipe, not 2F and 4F?

Unfortunately they are completely different, the legacy style 3f swipes can easily be emulated but native trackpad events are hard to do.

Maybe for your case the predefined action "Close All Notification Alerts" can help?