Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed touches for the !IPHONE_TOUCH_EFFICIENT_DANGEROUS case
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 9, 2011
1 parent 8ad11f1 commit 733c54c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/video/uikit/SDL_uikitview.m
Expand Up @@ -77,9 +77,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {

NSEnumerator *enumerator = [touches objectEnumerator];
UITouch *touch = (UITouch*)[enumerator nextObject];

//NSLog("Click");


if (touch) {
CGPoint locationInView = [touch locationInView: self];

Expand Down Expand Up @@ -114,9 +112,6 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}
}
#endif




touch = (UITouch*)[enumerator nextObject];
}
Expand Down Expand Up @@ -149,6 +144,7 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
SDL_SendFingerDown(touchId,i,
SDL_FALSE,locationInView.x,locationInView.y,
1);
finger[i] = NULL;
break;
}
}
Expand Down

0 comments on commit 733c54c

Please sign in to comment.