Changeset 5518
- Timestamp:
- 05/11/08 17:17:37 (5 days ago)
- Files:
-
- Spiral/trunk/SPApplicationController.m (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Spiral/trunk/SPApplicationController.m
r5490 r5518 190 190 191 191 case SPRemoteDisplayTime: 192 [movieController flashCurrentTime];192 [movieController showStatusOverlay]; 193 193 break; 194 194 … … 501 501 movieController = [delegate movieController]; 502 502 503 if( [movieController rate]> 1.0)503 if(fabs([movieController rate]) > 1.0) 504 504 [movieController playAtRate:1.0]; 505 505 } … … 515 515 SPRemoteAction action; 516 516 517 action = [[SPPS3Remote sharedRemote] actionForButton:button inContext:[self _remoteContext]]; 518 519 [self _handleRemoteAction:action]; 520 521 _holdingPS3RemoteButton = NO; 517 if([NSApp isActive]) { 518 action = [[SPPS3Remote sharedRemote] actionForButton:button inContext:[self _remoteContext]]; 519 520 [self _handleRemoteAction:action]; 521 522 _holdingPS3RemoteButton = NO; 523 } 522 524 } 523 525 … … 525 527 526 528 - (void)PS3RemoteHeldButton:(SPPS3RemoteButton)button { 527 _holdingPS3RemoteButton = YES; 528 529 [self performSelector:@selector(holdPS3RemoteButton:) 530 withObject:[NSNumber numberWithInt:button]]; 529 if([NSApp isActive]) { 530 _holdingPS3RemoteButton = YES; 531 532 [self performSelector:@selector(holdPS3RemoteButton:) 533 withObject:[NSNumber numberWithInt:button]]; 534 } 531 535 } 532 536 … … 536 540 SPRemoteAction action; 537 541 538 if( _holdingPS3RemoteButton) {542 if([NSApp isActive] && _holdingPS3RemoteButton) { 539 543 action = [[SPPS3Remote sharedRemote] actionForButton:[button intValue] inContext:[self _remoteContext]]; 540 544 … … 550 554 551 555 - (void)PS3RemoteReleasedButton { 552 _holdingPS3RemoteButton = NO; 556 if([NSApp isActive]) 557 _holdingPS3RemoteButton = NO; 553 558 } 554 559 … … 560 565 SPRemoteAction action; 561 566 562 action = [[SPWiiRemote sharedRemote] actionForButton:button inContext:[self _remoteContext]]; 563 564 [self _handleRemoteAction:action]; 565 566 _holdingWiiRemoteButton = NO; 567 if([NSApp isActive]) { 568 action = [[SPWiiRemote sharedRemote] actionForButton:button inContext:[self _remoteContext]]; 569 570 [self _handleRemoteAction:action]; 571 572 _holdingWiiRemoteButton = NO; 573 } 567 574 } 568 575 … … 570 577 571 578 - (void)wiiRemoteHeldButton:(SPWiiRemoteButton)button { 572 _holdingWiiRemoteButton = YES; 573 574 [self performSelector:@selector(holdWiiRemoteButton:) 575 withObject:[NSNumber numberWithInt:button]]; 579 if([NSApp isActive]) { 580 _holdingWiiRemoteButton = YES; 581 582 [self performSelector:@selector(holdWiiRemoteButton:) 583 withObject:[NSNumber numberWithInt:button]]; 584 } 576 585 } 577 586 … … 581 590 SPRemoteAction action; 582 591 583 if( _holdingWiiRemoteButton) {592 if([NSApp isActive] && _holdingWiiRemoteButton) { 584 593 action = [[SPWiiRemote sharedRemote] actionForButton:[button intValue] inContext:[self _remoteContext]]; 585 594 … … 595 604 596 605 - (void)wiiRemoteReleasedButton { 597 _holdingWiiRemoteButton = NO; 606 if([NSApp isActive]) 607 _holdingWiiRemoteButton = NO; 598 608 } 599 609
