Alex Rivera | Logout

Can the iPhone detect the size of a touch?

Asked 2009-02-07T21:05:44.497
10

As far as I can tell the iPhone multitouch framework sends the location of each touch but not the size.

I want to allow the user to tap a button with the tip of their thumb, or to put the pad of their thumb across multiple buttons (not real UIButtons) and have my touch tracking code realize it needs to press all the buttons the thumb is over.

Edit
Report

1 Answer

15

All these answers are wrong. The fact that Apple doesn't appear to sanction this in apps on the store is a different matter.

 float vf = 10.0; 
 id valFloat = [thisTouch valueForKey:"pathMajorRadius"]; 
 if(valFloat != nil) {
   vf = [valFloat floatValue]; 
 }

I really wish that this issue would get pushed harder by users and developers.

answered 2010-12-20T04:48:46.657

Your Answer