disable SonarPen driver

This commit is contained in:
2018-09-21 02:26:05 +02:00
parent 7c7027502e
commit edff262baf
3 changed files with 6 additions and 6 deletions

View File

@@ -70,9 +70,9 @@ void global_signal_handler(int e)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch. // Override point for customization after application launch.
NSSetUncaughtExceptionHandler(&global_exception_handler); NSSetUncaughtExceptionHandler(&global_exception_handler);
sonarpen_driver = [[WTSonarPenDriver alloc] initWithApplication:application]; // sonarpen_driver = [[WTSonarPenDriver alloc] initWithApplication:application];
[sonarpen_driver start]; // [sonarpen_driver start];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(penStatusChanged) name:WTSonarPenDriverStateChangedNotification object:nil]; // [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(penStatusChanged) name:WTSonarPenDriverStateChangedNotification object:nil];
view = (GameViewController*)self.window.rootViewController; view = (GameViewController*)self.window.rootViewController;
return YES; return YES;

View File

@@ -276,8 +276,8 @@ std::set<UITouch*> ignored_touch;
UITouch *touch = valid_touches[0]; UITouch *touch = valid_touches[0];
CGPoint touchLocation = [touch locationInView:self.view]; CGPoint touchLocation = [touch locationInView:self.view];
float force = touch.type == UITouchType::UITouchTypeStylus ? touch.force : 1.0f; float force = touch.type == UITouchType::UITouchTypeStylus ? touch.force : 1.0f;
AppDelegate* app = (AppDelegate*)[[UIApplication sharedApplication] delegate]; //AppDelegate* app = (AppDelegate*)[[UIApplication sharedApplication] delegate];
force = [app sonarpen_pressure]; //force = [app sonarpen_pressure];
if (t_count == 2) if (t_count == 2)
{ {
//App::I.gesture_end(); //App::I.gesture_end();

View File

@@ -40,7 +40,7 @@
<key>LSSupportsOpeningDocumentsInPlace</key> <key>LSSupportsOpeningDocumentsInPlace</key>
<true/> <true/>
<key>NSMicrophoneUsageDescription</key> <key>NSMicrophoneUsageDescription</key>
<string>Use the audio jack for the SonarPen</string> <string>Enable if you have and use the SonarPen stylus</string>
<key>NSPhotoLibraryUsageDescription</key> <key>NSPhotoLibraryUsageDescription</key>
<string>Export the panoramic to the gallery</string> <string>Export the panoramic to the gallery</string>
<key>UIFileSharingEnabled</key> <key>UIFileSharingEnabled</key>