From 6fd3b4142a6ca9f04dfebd06df017e36a71b36d9 Mon Sep 17 00:00:00 2001 From: Nikolay Grebenshikov Date: Fri, 21 Aug 2015 15:54:58 +0600 Subject: [PATCH] Fix the multitouch support on iOS It's strange why touches parameter passed to the methods doesn't have all touches. But this fix works for me. --- legacy/project/src/iPhone/UIStageView.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/project/src/iPhone/UIStageView.mm b/legacy/project/src/iPhone/UIStageView.mm index a6ad63420..5574aec3a 100644 --- a/legacy/project/src/iPhone/UIStageView.mm +++ b/legacy/project/src/iPhone/UIStageView.mm @@ -523,7 +523,7 @@ static std::string nmeTitle; - (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