Exemple #1
0
 private void SendColorToMousepad(int index, System.Drawing.Color color)
 {
     if (Global.Configuration.allow_peripheral_devices)
     {
         if (mousepad != null && !Global.Configuration.devices_disable_mouse)
         {
             MousepadGrid[index] = new Color(color.R, color.G, color.B);
             mousepad.SetCustom(MousepadGrid);
         }
         previous_peripheral_Color = color;
         peripheral_updated        = true;
     }
     else
     {
         if (peripheral_updated)
         {
             peripheral_updated = false;
         }
     }
 }