Implement controller LED support

This commit is contained in:
Cameron Gutman
2023-09-27 08:52:26 -05:00
parent 7249854641
commit 9d0dc49fd2
5 changed files with 36 additions and 0 deletions

View File

@@ -538,6 +538,12 @@
[_controllerSupport setMotionEventState:controllerNumber motionType:motionType reportRateHz:reportRateHz];
}
- (void) setControllerLed:(uint16_t)controllerNumber r:(uint8_t)r g:(uint8_t)g b:(uint8_t)b {
Log(LOG_I, @"Set controller LED on gamepad %d: l%02x%02x%02x", controllerNumber, r, g, b);
[_controllerSupport setControllerLed:controllerNumber r:r g:g b:b];
}
- (void)connectionStatusUpdate:(int)status {
Log(LOG_W, @"Connection status update: %d", status);