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 634707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:19:30+00:00 2026-05-13T20:19:30+00:00

I started using the MoveMe sample to get touch input working. basically, I define

  • 0

I started using the MoveMe sample to get touch input working.

basically, I define these two callback functions to get my touch input:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 
{

    for ( UITouch* touch in touches )
    {
        printf("touch down");
    }
}



- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event 
{
    for ( UITouch* touch in touches )
    {
        printf("touch up");
    }
}

This works fine, until you have more than 5 touches on the screen at once. then it stops working properly, you won’t get the “touch down” message if there are more than 5 touches on the screen. what is even worse is that you won’t reliably get all of the “touch up” messages until you have removed ALL your fingers from the screen.

If you touch with 6 fingers, then release 3, then touch again with the other 3 still down, you will get the “touch down” but if you release it, some times you get the “touch up” sometimes you don’t.

This pretty much makes it impossible to track touches, and usually results in a touch getting ‘stuck’ permanently down, when passed to my Touch Manager.

Are there some better apis to use to get touch input? is there at very least a function you can call to reliably get whether the screen is currently touched or not? that way I could reset my manager when all fingers are released.

EDIT:

right, there must be something I’m missing. because currently the calculator does something I cannot do with those callbacks.

it only accepts one touch at a time, if there is more than one touch on the screen it “cancels” all touches, but it must keep track of them to know that there is “more than one” touch on the screen.

if I touch the screen the button goes down, now if I add another touch to the screen, the button releases, cool, not allowed more than one touch. now, if I add 4 more fingers to the screen, for a total of 6, the screen should break, and when I release those 6 fingers, the app shouldn’t get any of the “up” callbacks. yet when I release all of them and touch again, the button depresses, so it knows I released all those fingers!! how??

  • 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-13T20:19:30+00:00Added an answer on May 13, 2026 at 8:19 pm

    The problem you have is that the iPhone and iPod touch only support up to five touches at the same time (being fingers still touching the screen). This is probably a hardware limit.
    (As St3fan told you already.)

    The system will cancel all touches if there are more than 5 at the same time:
    touchesCancelled:withEvent:
    (This is probably what causes the odd behavior with only some touches calling touchesEnded:withEvent:)

    If you want to know if a touch ended and it ended because it was lifted then make sure to check the UITouch’s phase property.

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

Sidebar

Ask A Question

Stats

  • Questions 310k
  • Answers 310k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There's a good O'Reilly book on this topic. While the… May 13, 2026 at 10:15 pm
  • Editorial Team
    Editorial Team added an answer Not quite clear what you are looking for... I can… May 13, 2026 at 10:15 pm
  • Editorial Team
    Editorial Team added an answer PHP is the best to start, but as experienced programmer… May 13, 2026 at 10:15 pm

Related Questions

I started using the jquery ui library to add some enhanced UI elements to
I have a blog written in Django, and I started using the basic Django
I've just started using NHibernate, and I have some issues that I'm unsure how
About five years ago I started using Generic lookup Tables for applications I was
I'm building a traditional ASP.NET Web Service -- the style built using asmx. It's

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.