Quote:
Originally Posted by rfog
Because they didn't implement pencil tap as finger tap?
In devices that support pen and digit, interfaces are separated, and accessed by different code. However, normal rule is convert pen touch into digit touch and into mouse touch if program does not use pen API or Digit API.
No mortar can confirm that a pen touch will be a finger touch until iPad Pro will be released.
|
This mortal dares to confirm exactly that.
The API docs are public now that 9.1 is out of beta, as well as code samples for working with the stylus. All the stylus input data is on the same API as finger touches are: UITouch. All Apple did was add properties to it which have the extra data coming from the stylus, and a flag to tell you which type of touch it is.
So if you do nothing, all your code will treat these touches from the stylus like a finger touch. But if you want to use pressure/tilt, you need to detect that it is a stylus touch and then pull the extra information from it.