summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/Driver_1770_ff00.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/Driver_1770_ff00.java b/src/drivers/Driver_1770_ff00.java
index 602c29a..9b1d169 100644
--- a/src/drivers/Driver_1770_ff00.java
+++ b/src/drivers/Driver_1770_ff00.java
@@ -24,7 +24,7 @@ public class Driver_1770_ff00 implements Driver, DriverTypeA{
/**
* Define Keyboard color state
*/
- private HashMap<Region, Pair<Color,Intensity>> KeyboardColor=new HashMap<>();
+ private HashMap<Region, Pair<Color,Intensity>> keyboardColorsState=new HashMap<>();
/**
* Define Keyboard mode state
@@ -88,6 +88,7 @@ public class Driver_1770_ff00 implements Driver, DriverTypeA{
try {
this.device.sendFeatureReport(this.getReport(1,2,66,region.intValue(),color.intValue(),intensity.intValue(),0,236));
this.commit();
+ this.keyboardColorsState.put(region, new Pair<DriverTypeA.Color, DriverTypeA.Intensity>(color, intensity));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -104,6 +105,10 @@ public class Driver_1770_ff00 implements Driver, DriverTypeA{
this.device.sendFeatureReport(this.getReport(1,2,66,Region.MIDDLE.intValue(),color.intValue(),intensity.intValue(),0,236));
this.device.sendFeatureReport(this.getReport(1,2,66,Region.RIGHT.intValue(),color.intValue(),intensity.intValue(),0,236));
this.commit();
+ this.keyboardColorsState.put(Region.LEFT, new Pair<DriverTypeA.Color, DriverTypeA.Intensity>(color, intensity));
+ this.keyboardColorsState.put(Region.MIDDLE, new Pair<DriverTypeA.Color, DriverTypeA.Intensity>(color, intensity));
+ this.keyboardColorsState.put(Region.RIGHT, new Pair<DriverTypeA.Color, DriverTypeA.Intensity>(color, intensity));
+
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();