Jump to content
  • Advertisement
Sign in to follow this  
Josh Klint

Android multitouch input

This topic is 2541 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

We have experience unexpected behavior on Android devices, using NDK and Android 2.2. The touchID values do not appear to be correct or consistent. Behavior is as follows:

Place one finger on device: touchID is 0.
Place second finger on device: touched is 1.
Move second finger: touchID is 1.
Move first finger: touchID is 1(!)
Remove second finger: touchID is 1.
Move first finger: touchID is 1(!)
Remove first finger: touchID is 0.

Is there a setting we need to specify in the project to make this work, or any other explanation for this behavior? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I have been coding on an android tablet for some time, and haven't noticed this kind of behavior (though I only own one device). I did not need to do anything special, reading the pointer id's worked ok.

Try downloading some of the free touch test or multitouch paint apps from the market, and see if they exhibit the same behavior on the problematic device. Perhaps that will help you pinpoint whether it's in the hardware, or in your code.


Share this post


Link to post
Share on other sites
It's quite possible that the touch device you're using is only semi-multitouch. That is, it reports the bounding box of the touch area and the number of touches, but that's it.

It's also possible the hardware driver is crap. That describes many of the Android drivers out there.

Do you get the same behaviour with various different devices or are you testing wit ha single device?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!