Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6214429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:52:30+00:00 2026-05-24T06:52:30+00:00

Is it possible to detect the fingersize in an IOS Application? I’ve read in

  • 0

Is it possible to detect the fingersize in an IOS Application?
I’ve read in the documentation:

Notes: A finger on the screen affords a much different level of
precision than a mouse pointer. When a user touches the screen, the
area of contact is actually elliptical and tends to be offset below
the point where the user thinks he or she touched. This “contact
patch” also varies in size and shape based on which finger is touching
the screen, the size of the finger, the pressure of the finger on the
screen, the orientation of the finger, and other factors. The
underlying Multi-Touch system analyzes all of this information for you
and computes a single touch point.

Source: https://web.archive.org/web/20121120152010/http://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MultitouchEvents/MultitouchEvents.html

So, does that mean theres no possibility with the SDK to detect the physical fingersize? What I want to accomplish: I need virtual “buttons” in my OpenGL ES Application. And if someone hold the iPhone like a gamepad, he will probalbly use one finger for two buttons (rolling off the thumb). I hope its understandable what I mean…

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:52:31+00:00Added an answer on May 24, 2026 at 6:52 am

    @fichek is right, there is no regular way to get the size of fingertips.

    However, I had used a ‘strange’ way in my previous project to do it, and it just works 😉

    1.Tell our user to put two fingers on the screen together, the closer the better(like the two-finger scrolling gesture on Mac):
    enter image description here

    2.Get the two CGPoints from UITouches in the touchesBegan:withEvent: method;

    3.Now we have CGPoint fingertip1center and fingertip2center, so:

    float fingertip_Diameter=fabsf(fingertip1center.x-fingertip2center.x);
    

    4.The fingers are really close and we may ignore the tiny difference in width , so dX == the real width of a singel finger.

    5.The width(dX) and the fingertipsize are proportional, we can simply use

    float fingertip_Size=M_PI*(dX/2)*(dX/2);

    or find a better algorithm to meet your needs 😉

    6.Once we got the size (actually we only care about the diameter), its easy to implement a method to optimize touching by testing various surrounded points, e.g.:

    #define kTestLevelOne 5 //Testing 5 points:origin,left,right,up,down
    #define kTestLevelTwo 9 //And the other 4 corners
    -(BOOL)testSurroundingPoints:(CGPoint *)pt
    {
       float prob_x[kTestLevelTwo]={0,-dX/2,dX/2,0,0,-dX/2,-dX/2,dX/2,dX/2};
       float prob_y[kTestLevelTwo]={0,0,0,dX/2,-dX/2,dX/2,-dX/2,dX/2,-dX/2};
    
       for(int i=0;i<kTestLevelTwo;i++)
       {
          if([self gotItAtX:pt.x+prob_x[i] andY:pt.y+prob_y[i]]==YES)
           {
               NSLog(@"Got It!");
               Return YES;
               //Or break; We don't need to try more points!
           }
       }
       return NO;
    }
    

    Hope these can help!

    Yichao Peak Ji

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to detect exactly how much finger is in contact with the
Is it possible to detect if a page is opened in 2 different browsers?
Is it possible to detect another finger touch during one finger is touching on
Is it possible to detect if my app is running and displaying on screen?
Is it possible to detect anytime a user moves their finger off of a
Is it possible to detect the HTTP request method (e.g. GET or POST) of
Is it possible to detect when the user clicks on the browser's back button?
Is it possible to detect a valid regular expression with another regular expression? If
Is it possible to detect, on the client side, whether the user is using
Is it possible to detect the specific webcam hardware that a person is using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.