コード例 #1
0
ファイル: LEDSlidersDlg.cpp プロジェクト: forivall/nil
void CLEDSlidersDlg::OnClickedButtonSaveLighting()
{
#ifndef USE_LOGITECH_DLL_ONLY
    LogiLedSaveCurrentLighting(GetDeviceType());
#else
    g_lpfnDllSaveCurrentLighing(GetDeviceType());
#endif
}
コード例 #2
0
 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;
 }