public enum class CecClientVersion
{
VersionPre1_5 = 0,
- Version1_5_0 = 0x1500
+ Version1_5_0 = 0x1500,
+ Version1_5_1 = 0x1501
};
public enum class CecServerVersion
{
VersionPre1_5 = 0,
- Version1_5_0 = 0x1500
+ Version1_5_0 = 0x1500,
+ Version1_5_1 = 0x1501
};
public ref class CecAdapter
PowerOffScreensaver = CEC_DEFAULT_SETTING_POWER_OFF_SCREENSAVER == 1;
PowerOffOnStandby = CEC_DEFAULT_SETTING_POWER_OFF_ON_STANDBY == 1;
+ SendInactiveSource = CEC_DEFAULT_SETTING_SEND_INACTIVE_SOURCE == 1;
}
void SetCallbacks(CecCallbackMethods ^callbacks)
PowerOffScreensaver = config.bPowerOffScreensaver == 1;
PowerOffOnStandby = config.bPowerOffOnStandby == 1;
+ SendInactiveSource = config.bSendInactiveSource == 1;
}
property System::String ^ DeviceName;
property CecLogicalAddresses ^PowerOffDevices;
property bool PowerOffScreensaver;
property bool PowerOffOnStandby;
+ property bool SendInactiveSource;
property CecCallbackMethods ^ Callbacks;
};
}
config.bPowerOffScreensaver = netConfig->PowerOffScreensaver ? 1 : 0;
config.bPowerOffOnStandby = netConfig->PowerOffOnStandby ? 1 : 0;
+ config.bSendInactiveSource = netConfig->SendInactiveSource ? 1 : 0;
config.callbacks = &g_cecCallbacks;
}