View Single Post
Old 11-02-2015, 08:54 PM   #24
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by rfog View Post
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.
Kolenka is offline   Reply With Quote