From edff262baf01c049d45aa844d98c706d2cc26b04 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Fri, 21 Sep 2018 02:26:05 +0200 Subject: [PATCH] disable SonarPen driver --- PanoPainter/AppDelegate.m | 6 +++--- PanoPainter/GameViewController.m | 4 ++-- PanoPainter/Info.plist | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PanoPainter/AppDelegate.m b/PanoPainter/AppDelegate.m index fc5f29d..08f3927 100644 --- a/PanoPainter/AppDelegate.m +++ b/PanoPainter/AppDelegate.m @@ -70,9 +70,9 @@ void global_signal_handler(int e) - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. NSSetUncaughtExceptionHandler(&global_exception_handler); - sonarpen_driver = [[WTSonarPenDriver alloc] initWithApplication:application]; - [sonarpen_driver start]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(penStatusChanged) name:WTSonarPenDriverStateChangedNotification object:nil]; +// sonarpen_driver = [[WTSonarPenDriver alloc] initWithApplication:application]; +// [sonarpen_driver start]; +// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(penStatusChanged) name:WTSonarPenDriverStateChangedNotification object:nil]; view = (GameViewController*)self.window.rootViewController; return YES; diff --git a/PanoPainter/GameViewController.m b/PanoPainter/GameViewController.m index 482700e..450fd31 100644 --- a/PanoPainter/GameViewController.m +++ b/PanoPainter/GameViewController.m @@ -276,8 +276,8 @@ std::set ignored_touch; UITouch *touch = valid_touches[0]; CGPoint touchLocation = [touch locationInView:self.view]; float force = touch.type == UITouchType::UITouchTypeStylus ? touch.force : 1.0f; - AppDelegate* app = (AppDelegate*)[[UIApplication sharedApplication] delegate]; - force = [app sonarpen_pressure]; + //AppDelegate* app = (AppDelegate*)[[UIApplication sharedApplication] delegate]; + //force = [app sonarpen_pressure]; if (t_count == 2) { //App::I.gesture_end(); diff --git a/PanoPainter/Info.plist b/PanoPainter/Info.plist index 144f926..b0febed 100644 --- a/PanoPainter/Info.plist +++ b/PanoPainter/Info.plist @@ -40,7 +40,7 @@ LSSupportsOpeningDocumentsInPlace NSMicrophoneUsageDescription - Use the audio jack for the SonarPen + Enable if you have and use the SonarPen stylus NSPhotoLibraryUsageDescription Export the panoramic to the gallery UIFileSharingEnabled