Ejemplo n.º 1
0
        private void SendColorsToKeyboard(bool forced = false)
        {
            if (Global.Configuration.devices_disable_keyboard)
            {
                return;
            }

            color_matrix.KeyColor = key_colors;
            CoolerMasterSDK.SetAllLedColor(color_matrix);
            //previous_key_colors = key_colors;
            keyboard_updated = true;
        }
Ejemplo n.º 2
0
        private void SendColorsToKeyboard(bool forced = false)
        {
            if (Global.Configuration.devices_disable_keyboard)
            {
                return;
            }

            List <CoolerMasterSDK.DEVICE_INDEX> devices = InitializedDevices.FindAll(x => CoolerMasterSDK.Keyboards.Contains(x));

            if (devices.Count > 0)
            {
                SwitchToDevice(devices.First());
            }
            else
            {
                return;
            }

            color_matrix.KeyColor = key_colors;
            CoolerMasterSDK.SetAllLedColor(color_matrix);
            //previous_key_colors = key_colors;
            keyboard_updated = true;
        }