Show
Ignore:
Timestamp:
04/22/08 01:46:27 (7 months ago)
Author:
morris
Message:

Generalize remote button handlers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Spiral/trunk/SPAppleRemote.h

    r5460 r5472  
    5353 *****************************************************************************/ 
    5454 
    55 #import <mach/mach.h> 
    56 #import <mach/mach_error.h> 
    57 #import <IOKit/IOKitLib.h> 
    58 #import <IOKit/IOCFPlugIn.h> 
    59 #import <IOKit/hid/IOHIDLib.h> 
    60 #import <IOKit/hid/IOHIDKeys.h> 
     55#import "SPRemote.h" 
    6156 
    6257enum _SPAppleRemoteButton { 
     
    7873@protocol SPAppleRemoteDelegate; 
    7974 
    80 @interface SPAppleRemote : WIObject
     75@interface SPAppleRemote : SPRemote
    8176        IBOutlet id <SPAppleRemoteDelegate>                     delegate; 
    8277 
     
    9287        BOOL                                                                            _lastButtonSimulatedHold; 
    9388         
    94         BOOL                                                                            _delegateAppleRemotePressedButtonDown
     89        BOOL                                                                            _delegateAppleRemotePressedButton
    9590        BOOL                                                                            _delegateAppleRemoteHeldButton; 
     91        BOOL                                                                            _delegateAppleRemoteReleasedButton; 
    9692} 
    9793 
     
    105101- (BOOL)isListening; 
    106102 
     103- (SPRemoteAction)actionForButton:(SPAppleRemoteButton)button inContext:(SPRemoteContext)context; 
     104 
    107105@end 
    108106 
     
    112110@optional 
    113111 
    114 - (void)appleRemotePressedButton:(SPAppleRemoteButton)button down:(BOOL)down
     112- (void)appleRemotePressedButton:(SPAppleRemoteButton)button
    115113- (void)appleRemoteHeldButton:(SPAppleRemoteButton)button; 
     114- (void)appleRemoteReleasedButton; 
    116115 
    117116@end