News for hackers. Stuff that matters.
Re:My wonderful world of macOS by archagon on Monday August 28, 2017 @08:19AM (#15116025)
Huh, neat! I was wrong, didn't realize BTT supported that. I'm using fake three-finger swipes for my app as well, via the calftrail code you mentioned. (Hence the GPL license.) Are you using a different trick? Is there a more elegant way to do it barring private API access?
Re:My wonderful world of macOS by fifafu on Monday August 28, 2017 @08:40AM (#15116120)
No, unfortunately it's not elegant at all :-)

I'm basically using CGEventCreateData to save an original system three finger swipe, then I'm just generating an event based on that saved data and refresh the timestamp and mouse location before sending it.

Re:My wonderful world of macOS by archagon on Monday August 28, 2017 @08:48AM (#15116156)
Thanks for the info! I was considering doing something similar when I was building my app, but calftrail's code saved the day...

Wish developers were legitimately able to generate those three-finger swipe events, because they are ubiquitously supported and really useful. (Just the other day, I discovered that Preview allows you to switch pages by swiping up and down! Weird.)

Re:My wonderful world of macOS by fifafu on Monday August 28, 2017 @08:53AM (#15116186)
Up and down swipes were quite common before macOS 10.9 and some apps still implement them. They basically trigger a page up/page down event.