RSS

(root)/iphone/tappity : 51 : tappity/source/TappityServer.m

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

« back to all changes in this revision

Viewing changes to tappity/source/TappityServer.m

Dömötör Gulyás
2009-10-30 18:16:49
Revision ID: dognotdog@gmail.com-20091030171649-ekeuirylrnbck5sg
switches tappity client to do drawing via GLES

Show diffs side-by-side

added added

removed removed

463
463
- (void) dataReceived: (NSDictionary*) dataDict
464
464
{
465
465
        uint32_t messageId = [[dataDict objectForKey: TapIdKey] intValue];
 
466
        
 
467
        NSLog(@"messageid %d", messageId);
466
468
 
467
469
        NSData* tapData = [dataDict objectForKey: TapDataKey];
468
470
        
553
555
                        }
554
556
                        break;
555
557
                }
 
558
                case kTapStartSendingVisualFeedback:
 
559
                {
 
560
                        NSLog(@"enabling visual uplink");
 
561
                        enableVisualFeedback = YES;
 
562
                        break;
 
563
                }
556
564
        }
557
565
        
558
566
        [tapData release];
588
596
{
589
597
        NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate];
590
598
        
591
 
        if (now < lastGlUpdate + 2.0*desiredFrameInterval)
 
599
        if ((now < lastGlUpdate + 2.0*desiredFrameInterval))
592
600
                return;
593
601
                
594
602
        // return if any gl has been updated at all
595
 
        if (lastGlUpdate)
 
603
        if (lastGlUpdate || !enableVisualFeedback)
596
604
                return;
597
605
        
598
606
        [self performSelectorOnMainThread: @selector(getWindowToCapture) withObject: nil waitUntilDone: NO];
767
775
 
768
776
- (void) glGrabPoint
769
777
{
770
 
        if (!commsSocket || (commsSocket == -1))
 
778
        if (!commsSocket || (commsSocket == -1) || !enableVisualFeedback)
771
779
                return;
772
780
 
773
781
        NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate];

Loggerhead 1.17 is a web-based interface for Bazaar branches