AppleRemoteDelegate.h 845 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __APPLE_REMOTE_DELEGATE_H__
  2. #define __APPLE_REMOTE_DELEGATE_H__
  3. #import <Cocoa/Cocoa.h>
  4. #import "HIDRemote.h"
  5. class InputAppleRemote;
  6. @interface AppleRemoteDelegate : NSObject<HIDRemoteDelegate>
  7. {
  8. InputAppleRemote* m_remoteHandler;
  9. }
  10. - (instancetype)initWithRemoteHandler:(InputAppleRemote*)remoteHandler;
  11. - (void)hidRemote:(HIDRemote *)hidRemote
  12. eventWithButton:(HIDRemoteButtonCode)buttonCode
  13. isPressed:(BOOL)isPressed
  14. fromHardwareWithAttributes:(NSMutableDictionary *)attributes;
  15. - (void)hidRemote:(HIDRemote *)hidRemote failedNewHardwareWithError:(NSError *)error;
  16. - (void)hidRemote:(HIDRemote *)hidRemote foundNewHardwareWithAttributes:(NSMutableDictionary *)attributes;
  17. - (void)hidRemote:(HIDRemote *)hidRemote releasedHardwareWithAttributes:(NSMutableDictionary *)attributes;
  18. - (bool)setupRemote;
  19. @end
  20. #endif