2019-10-19 16:26:04 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2021-07-29 19:43:55 +00:00
|
|
|
#import "JOYButton.h"
|
2019-10-19 16:26:04 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
JOYAxisUsageNone,
|
|
|
|
JOYAxisUsageL1,
|
|
|
|
JOYAxisUsageL2,
|
|
|
|
JOYAxisUsageL3,
|
|
|
|
JOYAxisUsageR1,
|
|
|
|
JOYAxisUsageR2,
|
|
|
|
JOYAxisUsageR3,
|
2021-07-29 19:43:55 +00:00
|
|
|
|
|
|
|
JOYAxisUsageSlider,
|
|
|
|
JOYAxisUsageDial,
|
2019-10-19 16:26:04 +00:00
|
|
|
JOYAxisUsageWheel,
|
2021-07-29 19:43:55 +00:00
|
|
|
|
2019-10-19 16:26:04 +00:00
|
|
|
JOYAxisUsageRudder,
|
|
|
|
JOYAxisUsageThrottle,
|
|
|
|
JOYAxisUsageAccelerator,
|
|
|
|
JOYAxisUsageBrake,
|
2021-07-29 19:43:55 +00:00
|
|
|
|
2019-10-19 16:26:04 +00:00
|
|
|
JOYAxisUsageNonGenericMax,
|
|
|
|
|
|
|
|
JOYAxisUsageGeneric0 = 0x10000,
|
|
|
|
} JOYAxisUsage;
|
|
|
|
|
|
|
|
@interface JOYAxis : NSObject
|
|
|
|
- (NSString *)usageString;
|
|
|
|
+ (NSString *)usageToString: (JOYAxisUsage) usage;
|
|
|
|
- (uint64_t)uniqueID;
|
|
|
|
- (double)value;
|
2021-07-29 19:43:55 +00:00
|
|
|
- (JOYButtonUsage)equivalentButtonUsage;
|
2019-10-19 16:26:04 +00:00
|
|
|
@property JOYAxisUsage usage;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|