SameBoy/JoyKit/JOYElement.h

21 lines
540 B
C
Raw Permalink Normal View History

#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;
@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