Open bakercp opened 7 years ago
Any headway on this @bakercp ? ofxPointer stuff looked like a great idea
Definitely. I'm pushing ofxpointer stuff today and just added support for Apple pencil, pressure and angles and coalesced touches on ios. I would love to get it into the core, but haven't submitted much to the core lately because core PRs tend to gather dust without significant backing. If your are interested in helping move it through I'm all for it! Until then, I'm trying to continue improving ofxPointer as a drop in replacement for the core mouse/touch system.
Awesome! Yeah get it up and I'll test it and lets get it in
Bump :D!
I'd like to see this in core too! Is that still on the table?
Voila, just what I was looking for! @bakercp where does your code need to go for this work? I need to add this in - just realised today that touchEvents is not returning a bunch of stuff I was expecting...
In the last week, I've significantly updated ofxPointer to fully support all of this stuff (including Apple Pencil features, etc).
It now supports a host of UITouch
feature on iOS including coalesced and predicted touches, pressure, tilt, estimated property updates, etc.
https://github.com/bakercp/ofxPointer
ofxPointer for iOS now has two modes -- a compatibility mode which just digests ofTouchEventArgs
and one that adds a new view that intercepts all of the touches and dispatches them as a PointerEvents (including all of the richness of coalesced touches, predicted touches, etc etc).
@arturoc any thoughts on this?
I wonder if this could be part of an ofxiOS update?
There are some quite old parts in ofxiOS at the moment and @jvcleave was discussing doing a good cleanup. I would be happy to help with an ofxiOS push to modernize some of the api.
no idea about iOS, @danoli3 has been usually mantaining that and taking all the decisions on what to do on that part of the code whatever he or anyone else who takes over iOS from now on is ok for me
Currently
ofxiOSEAGLView
doesn't capture all available touch information (and doesn't fill out ourofTouchEventArgs
). We're missing information about pressure and size of the touch. Here's an example of a fix. I'm happy to issue a pull request, but I wanted to see if anyone else is working on it already.A related effort by @borg is here and it seems we should also incorporate that into the next release.
https://github.com/openframeworks/openFrameworks/pull/4801