Fixed touches for the !IPHONE_TOUCH_EFFICIENT_DANGEROUS case
This commit is contained in:
parent
63251bb510
commit
48ef3c9e2e
1 changed files with 2 additions and 6 deletions
|
@ -77,9 +77,7 @@
|
||||||
|
|
||||||
NSEnumerator *enumerator = [touches objectEnumerator];
|
NSEnumerator *enumerator = [touches objectEnumerator];
|
||||||
UITouch *touch = (UITouch*)[enumerator nextObject];
|
UITouch *touch = (UITouch*)[enumerator nextObject];
|
||||||
|
|
||||||
//NSLog("Click");
|
|
||||||
|
|
||||||
if (touch) {
|
if (touch) {
|
||||||
CGPoint locationInView = [touch locationInView: self];
|
CGPoint locationInView = [touch locationInView: self];
|
||||||
|
|
||||||
|
@ -114,9 +112,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
touch = (UITouch*)[enumerator nextObject];
|
touch = (UITouch*)[enumerator nextObject];
|
||||||
}
|
}
|
||||||
|
@ -149,6 +144,7 @@
|
||||||
SDL_SendFingerDown(touchId,i,
|
SDL_SendFingerDown(touchId,i,
|
||||||
SDL_FALSE,locationInView.x,locationInView.y,
|
SDL_FALSE,locationInView.x,locationInView.y,
|
||||||
1);
|
1);
|
||||||
|
finger[i] = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue