RSS

(root)/iphone/common : 49 : MarineCompass/source/MarineCompassAppDelegate.m

To get this branch, use:
bzr branch /browse/iphone/common

« back to all changes in this revision

Viewing changes to MarineCompass/source/MarineCompassAppDelegate.m

Dömötör Gulyás
2009-10-28 22:34:56
Revision ID: dognotdog@gmail.com-20091028213456-9pjbddhboknsf5w8
tappity now no longer eating some events

Show diffs side-by-side

added added

removed removed

10
10
#import "EAGLView.h"
11
11
#import "CompassViewController.h"
12
12
#import "ElAnimation.h"
 
13
#import "TappityServer.h"
13
14
 
14
15
#import <UIKit/UIKit.h>
15
16
#import <CoreLocation/CoreLocation.h>
44
45
{
45
46
 
46
47
        [window addSubview: [self view]];
47
 
    
 
48
        
 
49
#if TARGET_IPHONE_SIMULATOR
 
50
        TappityServer* tappityServer = [TappityServer sharedServer];
 
51
        [tappityServer startWithName: @"MarineCompass"];
 
52
        [tappityServer setHeadingDelegate: self];
 
53
#else   
48
54
        lman = [[CLLocationManager alloc] init];
49
55
        
50
56
        [lman setDelegate: self];
51
57
        
52
58
        [lman startUpdatingHeading];
 
59
#endif
53
60
 
54
61
        UIAccelerometer* accm = [UIAccelerometer sharedAccelerometer];
55
 
        
56
62
        [accm setDelegate: self];
57
63
        [accm setUpdateInterval: 0.01];
58
64
        
64
70
 
65
71
        mag = (v3){0.1,0.2,0.3};
66
72
 
 
73
 
 
74
 
67
75
/*
68
76
        unsigned int cp0 = 0;
69
77
        __asm__(

Loggerhead 1.17 is a web-based interface for Bazaar branches