void CLEDSlidersDlg::OnClickedButtonSaveLighting() { #ifndef USE_LOGITECH_DLL_ONLY LogiLedSaveCurrentLighting(GetDeviceType()); #else g_lpfnDllSaveCurrentLighing(GetDeviceType()); #endif }
LFXE_API bool DeviceLogitech::Enable() { if (!this->IsEnabled()) { if (Device::Enable()) { if (LogiLedInit()) { this->Reset(); LogiLedSaveCurrentLighting(); } else { LOG_ERROR(L"Could not enable Logitech, make sure that Logitech Gaming Software is running and that it's at least at version 8.57.145"); this->SetEnabled(false); return false; } } else { return false; } } return true; }