From d5bbcce165237988b92dc5c3504cb97fcd838ff2 Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 6 Jun 2013 18:07:11 +0800 Subject: [PATCH] [iOS] Enabling multiple touch event for TestJavascript, multi-platform-js, multiplatform-lua.Disabling multiple touch event for multi-platform-cpp. --- samples/Javascript/TestJavascript/proj.ios/AppController.mm | 2 ++ template/multi-platform-cpp/proj.ios/AppController.mm | 1 - template/multi-platform-js/proj.ios/AppController.mm | 2 ++ template/multi-platform-lua/proj.ios/AppController.mm | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/samples/Javascript/TestJavascript/proj.ios/AppController.mm b/samples/Javascript/TestJavascript/proj.ios/AppController.mm index 3e3e5c9474..55052cbae8 100644 --- a/samples/Javascript/TestJavascript/proj.ios/AppController.mm +++ b/samples/Javascript/TestJavascript/proj.ios/AppController.mm @@ -35,6 +35,8 @@ static AppDelegate s_sharedApplication; multiSampling: NO numberOfSamples: 0 ]; + [__glView setMultipleTouchEnabled:YES]; + // Use RootViewController manage EAGLView viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; viewController.wantsFullScreenLayout = YES; diff --git a/template/multi-platform-cpp/proj.ios/AppController.mm b/template/multi-platform-cpp/proj.ios/AppController.mm index 18674885a0..0ed0be670a 100644 --- a/template/multi-platform-cpp/proj.ios/AppController.mm +++ b/template/multi-platform-cpp/proj.ios/AppController.mm @@ -35,7 +35,6 @@ static AppDelegate s_sharedApplication; sharegroup: nil multiSampling: NO numberOfSamples: 0]; - [__glView setMultipleTouchEnabled:YES]; // Use RootViewController manage EAGLView viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; diff --git a/template/multi-platform-js/proj.ios/AppController.mm b/template/multi-platform-js/proj.ios/AppController.mm index ce9bb75462..5910da0d35 100644 --- a/template/multi-platform-js/proj.ios/AppController.mm +++ b/template/multi-platform-js/proj.ios/AppController.mm @@ -28,6 +28,8 @@ static AppDelegate s_sharedApplication; sharegroup: nil multiSampling: NO numberOfSamples: 0 ]; + + [__glView setMultipleTouchEnabled:YES]; // Use RootViewController manage EAGLView viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; diff --git a/template/multi-platform-lua/proj.ios/AppController.mm b/template/multi-platform-lua/proj.ios/AppController.mm index cbccc23254..2218aac5e4 100644 --- a/template/multi-platform-lua/proj.ios/AppController.mm +++ b/template/multi-platform-lua/proj.ios/AppController.mm @@ -51,6 +51,7 @@ static AppDelegate s_sharedApplication; multiSampling: NO numberOfSamples: 0 ]; + [__glView setMultipleTouchEnabled:YES]; // Use RootViewController manage EAGLView viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; viewController.wantsFullScreenLayout = YES;