Tap pressure strength detection using accelerometer

前端 未结 8 1043
一整个雨季
一整个雨季 2020-11-29 00:05

Yesterday, in the presentation about the new Garageband for iPad 2, Apple demoed an interesting feature: The detection of the tap pressure by using the accelerometer. (See t

8条回答
  •  -上瘾入骨i
    2020-11-29 00:44

    Even if the SDK exposes to us the touch area only, I believe the screen hardware is providing to the operating system much more info: touched pixels (used for area detection) and touch duration. Together (and experimenting) they can give you a good estimate of the applied pressure. It would be nice if Apple were releasing this empirical pressure estimation to developers.

提交回复
热议问题