Implement dynamic display mode changes for Apple TV

This commit is contained in:
Cameron Gutman
2022-02-13 14:27:17 -06:00
parent d7673075b2
commit 3a77bf3e65
6 changed files with 65 additions and 1 deletions

View File

@@ -302,6 +302,11 @@ void ClConnectionStatusUpdate(int status)
[_callbacks connectionStatusUpdate:status];
}
void ClSetHdrMode(bool enabled)
{
[_callbacks setHdrMode:enabled];
}
-(void) terminate
{
// Interrupt any action blocking LiStartConnection(). This is
@@ -453,6 +458,7 @@ void ClConnectionStatusUpdate(int status)
_clCallbacks.logMessage = ClLogMessage;
_clCallbacks.rumble = ClRumble;
_clCallbacks.connectionStatusUpdate = ClConnectionStatusUpdate;
_clCallbacks.setHdrMode = ClSetHdrMode;
return self;
}

View File

@@ -16,6 +16,7 @@
- (void) launchFailed:(NSString*)message;
- (void) rumble:(unsigned short)controllerNumber lowFreqMotor:(unsigned short)lowFreqMotor highFreqMotor:(unsigned short)highFreqMotor;
- (void) connectionStatusUpdate:(int)status;
- (void) setHdrMode:(bool)enabled;
- (void) videoContentShown;
@end