• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

TouchEvent touchPointID is always 0 on Android

Contributor ,
Dec 19, 2014 Dec 19, 2014

Copy link to clipboard

Copied

With AIR 16.0.0.245 app running on Android devices, I'm having a problem getting meaningful touchPointID values for single taps. The value is always reported as 0. This makes it impossible for me to track if a given TouchEvent is actually the same TouchEvent occurring in a different phase.

When I run the same code on iOS, subsequent touches increase their ID with each tap, which is as expected. I am getting the exact same positive results on both platforms from Multitouch.supportedGestures, Multitouch.supportsGestureEvents, and Multitouch.supportsTouchEvents. Multitouch.inputMode also reports touchPoint.

This is crippling my project right now.

TOPICS
Air beta

Views

487

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 19, 2014 Dec 19, 2014

Copy link to clipboard

Copied

I've tried setting and removing the following manifest settings, to no avail:

<uses-feature android:name="android.hardware.touchscreen" android:required="true" />
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="true" />

<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="true" />

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 09, 2015 Jan 09, 2015

Copy link to clipboard

Copied

LATEST

Just count the number of TOUCH_BEGIN events with touchPointID of 0 to determine if it's a new touch or not. The touchPointID starts at 0 (whereas iOS starts at 1), but a second finger will report 1, then 3rd finger 2, etc.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines