forked from LIJI32/SameBoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJOYButton.h
42 lines (35 loc) · 884 Bytes
/
JOYButton.h
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
#import <Foundation/Foundation.h>
typedef enum {
JOYButtonUsageNone,
JOYButtonUsageA,
JOYButtonUsageB,
JOYButtonUsageC,
JOYButtonUsageX,
JOYButtonUsageY,
JOYButtonUsageZ,
JOYButtonUsageStart,
JOYButtonUsageSelect,
JOYButtonUsageHome,
JOYButtonUsageMisc,
JOYButtonUsageLStick,
JOYButtonUsageRStick,
JOYButtonUsageL1,
JOYButtonUsageL2,
JOYButtonUsageL3,
JOYButtonUsageR1,
JOYButtonUsageR2,
JOYButtonUsageR3,
JOYButtonUsageDPadLeft,
JOYButtonUsageDPadRight,
JOYButtonUsageDPadUp,
JOYButtonUsageDPadDown,
JOYButtonUsageNonGenericMax,
JOYButtonUsageGeneric0 = 0x10000,
} JOYButtonUsage;
@interface JOYButton : NSObject
- (NSString *)usageString;
+ (NSString *)usageToString: (JOYButtonUsage) usage;
- (uint64_t)uniqueID;
- (bool) isPressed;
@property JOYButtonUsage usage;
@end