by i_am_ralpht · 12y ago · 0 comments
I tried to find the "pressure" API in iOS 8, but I just found a new majorRadius field (with an error tolerance). Android supports a bunch of information (including "pressure" and radius) -- I bet you get pretty rich data on devices with dedicated stylus support.
I was able to connect to the Pencil from Android via BTLE and observe the tip being pressed and released (though not the eraser for some reason; maybe I have to write some value out for that characteristic to come alive?) -- maybe later this summer I'll try to make a basic Pencil-compatible Android drawing app :).
So you could use the accelerometer independently of the touchscreen for gestures like flicking ink blots or swishing the "brush" in "water" -- or maybe you can do some fancy things on the screen like tapping on the same spot for stippling (using the accelerometer to approximate height and velocity, independent of the final pressure on the tip). There's so much fun stuff to do here!