Multi touch individual fingers

Posts: 39
Joined: 2008.10
Post: #1
Hello, What i want to do is read positions of multiple fingers so i can define different touches for different purposes - for example controling 2 joysticks on screen. Currently I have one joystick and i use one finger to control that and it works fine, then when i use the other finger to touch anywhere on the screen to shoot it does not recognize that touch. But if i release the joystick finger i can then use my other finger to shoot.

im using th standard way of checking for a touches

// Handles the end of a touch event when the touch is a tap.
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
CGRect bounds = [self bounds];
UITouch* touch = [[event touchesForView:self] anyObject];

if (firstTouch) {
firstTouch = NO;
previousLocation = [touch previousLocationInView:self];
previousLocation.y = bounds.size.height - previousLocation.y;
//[self renderAliveObjects];



How can i look for a position of say touch[1].x or touch[2].x etc?

thanks for any help on the best way to solve this.
Quote this message in a reply
Posts: 133
Joined: 2008.05
Post: #2
[view setMultipleTouchEnabled:YES]; ?
Quote this message in a reply
Posts: 353
Joined: 2002.04
Post: #3
Quote this message in a reply
Posts: 39
Joined: 2008.10
Post: #4
Thanks a lot, its working perfectly now.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Enable Multi-Touch? MrPenguin9 4 5,320 Mar 14, 2010 12:55 PM
Last Post: MrPenguin9
  Multi-touch failing Sumaleth 1 3,874 Feb 24, 2010 08:49 PM
Last Post: Sumaleth
  Pubishing under individual or company name dsedov 3 4,246 Jul 7, 2009 02:01 AM
Last Post: monteboyd
  Multi touch response time captainfreedom 12 11,250 May 9, 2009 12:35 PM
Last Post: Frank C.
  Multi Touch wonza 7 7,713 Mar 21, 2009 03:06 AM
Last Post: wonza