private Color ReadBackLight(HidDevice device) { byte[] b = new byte[4]; b[0] = KeyboardType.ReportID; device.GetFeature(b); return Color.FromArgb(b[1], b[2], b[3]); }
public static void SetBackLight(HidDevice dev, Color color) { // Create the feature buffer. byte[] featureBuffer = new byte[] { reportId, color.R, color.G, color.B }; // Send it to all devices we know of. dev.SetFeature(featureBuffer); }
public static Color GetBackLight(HidDevice device) { byte[] b = new byte[4]; b[0] = reportId; device.GetFeature(b); return Color.FromArgb(b[1], b[2], b[3]); }
internal LogitechKeyboard(HidDevice device, LogitechKeyboardType type) { Device = device; KeyboardType = type; }