-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWiiRemoteDiscovery.h
More file actions
44 lines (30 loc) · 844 Bytes
/
WiiRemoteDiscovery.h
File metadata and controls
44 lines (30 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// WiiRemoteDiscovery.h
// DarwiinRemote
//
// Created by Ian Rickard on 12/9/06.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <IOBluetooth/objc/IOBluetoothDeviceInquiry.h>
#import "WiiRemote.h"
@interface WiiRemoteDiscovery : NSObject {
IOBluetoothDeviceInquiry * _inquiry;
BOOL _isDiscovering;
id _delegate;
}
+ (WiiRemoteDiscovery*) discoveryWithDelegate:(id)delegate;
- (id) delegate;
- (void) setDelegate:(id) delegate;
- (IOReturn) start;
- (IOReturn) stop;
- (IOReturn) close;
- (BOOL) isDiscovering;
- (void) setIsDiscovering:(BOOL) flag;
- (void) connectToFoundDevices;
@end
@interface NSObject (WiiRemoteDiscoveryDelegate)
- (void) willStartWiimoteConnections;
- (void) WiiRemoteDiscovered:(WiiRemote*)wiimote;
- (void) WiiRemoteDiscoveryError:(int)code;
@end;