2019-10-19 16:26:04 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#include <IOKit/hid/IOHIDLib.h>
|
|
|
|
|
|
|
|
@interface JOYElement : NSObject<NSCopying>
|
|
|
|
- (instancetype)initWithElement:(IOHIDElementRef)element;
|
|
|
|
- (int32_t)value;
|
|
|
|
- (NSData *)dataValue;
|
2020-05-01 15:08:44 +00:00
|
|
|
- (IOReturn)setValue:(uint32_t)value;
|
|
|
|
- (IOReturn)setDataValue:(NSData *)value;
|
2019-10-19 16:26:04 +00:00
|
|
|
@property (readonly) uint16_t usage;
|
|
|
|
@property (readonly) uint16_t usagePage;
|
|
|
|
@property (readonly) uint32_t uniqueID;
|
|
|
|
@property int32_t min;
|
|
|
|
@property int32_t max;
|
|
|
|
@property (readonly) int32_t reportID;
|
|
|
|
@property (readonly) int32_t parentID;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|