Access 3D Touch values for pressure? iPhone 6S and iPad Pro

#1

I haven’t even looked at the official documentation for 3D touch integration, but I’m curious if anyone knows if it would be straightforward to get the 3D touch values from an iPhone 6s - have an idea for a game mechanic that could use the pressure values as a controller element. Thanks!

#2

@thedantheman found some good info, but i need to try my hand at either hacking the core or doing it another way:

and putting that in here: https://github.com/openframeworks/openFrameworks/blob/f49d0eead2b1a10e6ca8e2d3d8e2b31f7c316986/addons/ofxiOS/src/core/ofxiOSEAGLView.mm#L233

Or just ripping it out with a custom gesture like this, but then making sure the points are registered in the same order: https://github.com/openframeworks/openFrameworks/blob/ac32f4d21ec54577298f5f9ad7636623ee3c441d/apps/devApps/videoPlayerSetVolumeExampleIphone/src/VideoPlayerControls.m#L76

#3

Awesome! We’ll have to setup another touchEvent, but this will be a good addition to 0.10.0 I think!

#4

ofxPointer now supports all of this UITouch on iOS stuff.