git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

JoyKit/JOYElement.h

      1 #import <Foundation/Foundation.h>
      2 #import <IOKit/hid/IOHIDLib.h>
      3 
      4 #define inline_const(type, ...) (*({static const typeof(type) _= __VA_ARGS__; &_;}))
      5 
      6 @interface JOYElement : NSObject<NSCopying>
      7 - (instancetype)initWithElement:(IOHIDElementRef)element;
      8 - (int32_t)value;
      9 - (NSData *)dataValue;
     10 - (IOReturn)setValue:(uint32_t)value;
     11 - (IOReturn)setDataValue:(NSData *)value;
     12 @property (readonly) uint16_t usage;
     13 @property (readonly) uint16_t usagePage;
     14 @property (readonly) uint32_t uniqueID;
     15 @property int32_t min;
     16 @property int32_t max;
     17 @property (readonly) int32_t reportID;
     18 @property (readonly) int32_t parentID;
     19 
     20 @end
     21 
     22 

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.