Fix the multitouch support on iOS

This commit is contained in:
Nikolay Grebenshikov
2015-08-21 16:49:52 +06:00
parent 6fd3b4142a
commit 72466d6b28

View File

@@ -3437,7 +3437,7 @@ public:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSArray *touchArr = [touches allObjects];
NSArray *touchArr = [[event allTouches] allObjects];
NSInteger touchCnt = [touchArr count];
for(int i=0;i<touchCnt;i++)
@@ -3472,7 +3472,7 @@ public:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
NSArray *touchArr = [touches allObjects];
NSArray *touchArr = [[event allTouches] allObjects];
NSInteger touchCnt = [touchArr count];
for(int i=0;i<touchCnt;i++)
@@ -3502,7 +3502,7 @@ public:
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
NSArray *touchArr = [touches allObjects];
NSArray *touchArr = [[event allTouches] allObjects];
NSInteger touchCnt = [touchArr count];
for(int i=0;i<touchCnt;i++)