mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 02:50:32 +00:00
37 lines
714 B
Objective-C
37 lines
714 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "JOYButton.h"
|
|
|
|
typedef enum {
|
|
JOYAxisUsageNone,
|
|
JOYAxisUsageL1,
|
|
JOYAxisUsageL2,
|
|
JOYAxisUsageL3,
|
|
JOYAxisUsageR1,
|
|
JOYAxisUsageR2,
|
|
JOYAxisUsageR3,
|
|
|
|
JOYAxisUsageSlider,
|
|
JOYAxisUsageDial,
|
|
JOYAxisUsageWheel,
|
|
|
|
JOYAxisUsageRudder,
|
|
JOYAxisUsageThrottle,
|
|
JOYAxisUsageAccelerator,
|
|
JOYAxisUsageBrake,
|
|
|
|
JOYAxisUsageNonGenericMax,
|
|
|
|
JOYAxisUsageGeneric0 = 0x10000,
|
|
} JOYAxisUsage;
|
|
|
|
@interface JOYAxis : NSObject
|
|
- (NSString *)usageString;
|
|
+ (NSString *)usageToString: (JOYAxisUsage) usage;
|
|
- (uint64_t)uniqueID;
|
|
- (double)value;
|
|
- (JOYButtonUsage)equivalentButtonUsage;
|
|
@property JOYAxisUsage usage;
|
|
@end
|
|
|
|
|