Beispiel #1
0
        public void ChangeAllColors(CompanyColor color)
        {
            int r = (int)(((float)color.R / 255) * 100);
            int g = (int)(((float)color.G / 255) * 100);
            int b = (int)(((float)color.B / 255) * 100);

            LogitechGSDK.LogiLedSetLighting(r, g, b);
        }
Beispiel #2
0
        public void ChangeMousematColor(CompanyColor color)
        {
            if (color is null)
            {
                throw new Exception("Color can't be null");
            }
            CueSDK.UpdateMode = UpdateMode.Continuous;
            CorsairColorConverter corsairColor = new CorsairColorConverter();

            if (CueSDK.MousematSDK != null)
            {
                CueSDK.MousematSDK.Brush = new SolidColorBrush(new CorsairColor(corsairColor.ConvertToGenericColor(color)));
            }
            Thread.Sleep(1000);
        }
Beispiel #3
0
        public void ChangeAllColors(CompanyColor color)
        {
            if (color is null)
            {
                throw new Exception("Color can't be null");
            }
            CorsairColorConverter corsairColor = new CorsairColorConverter();

            foreach (var device in CueSDK.InitializedDevices)
            {
                device.Brush = new SolidColorBrush(new CorsairColor(corsairColor.ConvertToGenericColor(color)));
            }
            CueSDK.UpdateMode = UpdateMode.Continuous;
            Thread.Sleep(1000);
        }
Beispiel #4
0
        public void ChangeMouseColor(CompanyColor color)
        {
            Device  mouse       = new Device("1b1c", "1b2e");
            int     currentZone = 1;
            Command command     = new Command();

            command.AddCommand("7");
            command.AddCommand("22");
            command.AddCommand("" + currentZone);
            command.AddCommand("1");
            command.AddCommand("0");
            command.AddCommand(color.R);
            command.AddCommand(color.G);
            command.AddCommand(color.B);
            mouse.RequestToSendFeatureReport(command.CommandList.ToArray());
        }
Beispiel #5
0
 public void ChangeMousematColor(CompanyColor color)
 {
 }
Beispiel #6
0
 public void ChangeKeyboardColor(CompanyColor color)
 {
 }
Beispiel #7
0
 public void ChangeHeadsetStandColor(CompanyColor color)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public void ChangeAllColors(CompanyColor color)
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 public void ChangeMousematColor(CompanyColor color)
 {
     throw new NotImplementedException();
 }
Beispiel #10
0
 public void ChangeKeyboardColor(CompanyColor color)
 {
     throw new NotImplementedException();
 }
 public CorsairColor ConvertToGenericColor(CompanyColor color)
 {
     return(new CorsairColor(color.A, color.R, color.G, color.B));
 }