disable SonarPen driver
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -276,8 +276,8 @@ std::set<UITouch*> 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();
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<key>LSSupportsOpeningDocumentsInPlace</key>
|
||||
<true/>
|
||||
<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>
|
||||
<string>Export the panoramic to the gallery</string>
|
||||
<key>UIFileSharingEnabled</key>
|
||||
|
||||
Reference in New Issue
Block a user