Fix sendReport on JOYMultiplayerControlle

This commit is contained in:
Lior Halphon 2020-04-29 23:47:18 +03:00
parent 4c1f073d20
commit 6bcaffe27d

View File

@ -4,6 +4,7 @@
- (instancetype)initWithDevice:(IOHIDDeviceRef)device reportIDFilter:(NSArray <NSNumber *> *) filter serialSuffix:(NSString *)suffix; - (instancetype)initWithDevice:(IOHIDDeviceRef)device reportIDFilter:(NSArray <NSNumber *> *) filter serialSuffix:(NSString *)suffix;
- (void)elementChanged:(IOHIDElementRef) element toValue:(IOHIDValueRef) value; - (void)elementChanged:(IOHIDElementRef) element toValue:(IOHIDValueRef) value;
- (void)disconnected; - (void)disconnected;
- (void)sendReport:(NSData *)report;
@end @end
@implementation JOYMultiplayerController @implementation JOYMultiplayerController
@ -41,4 +42,9 @@
} }
} }
- (void)sendReport:(NSData *)report
{
[[_children firstObject] sendReport:report];
}
@end @end