From fb6d10b78bcd0fbfd8129db8c73f4419a01e2985 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sun, 27 Mar 2016 18:38:05 +0200 Subject: Remove useless files --- src/device/Keyboard.java | 71 ------------------------------------------------ 1 file changed, 71 deletions(-) delete mode 100644 src/device/Keyboard.java (limited to 'src/device/Keyboard.java') diff --git a/src/device/Keyboard.java b/src/device/Keyboard.java deleted file mode 100644 index cc7d8f9..0000000 --- a/src/device/Keyboard.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.manzerbredes.open_klm.device; - -import java.util.HashMap; - -import org.manzerbredes.open_klm.device.Driver.*; - -public class Keyboard{ - - /** - * Device driver - */ - private Driver device; - - /** - * Keyboard State - */ - private KeyboardState state; - - /** - * Build a keyboard access - * - * @throws InstantiationException Throw if failed to instanciate driver - */ - public Keyboard() throws InstantiationException{ - this.device=new Driver(); - this.state=new KeyboardState(); - } - - - /** - * - * Change global keyboard color - * - * @param color Color to apply - * @param intensity Intensity wanted - */ - public void setColor(Color color, Intensity intensity){ - //Save state - this.state.setColor(color, intensity); - - // Set color - this.device.setColor(Region.LEFT, color, intensity); - this.device.setColor(Region.MIDDLE, color, intensity); - this.device.setColor(Region.RIGHT, color, intensity); - - // Apply color - this.device.commit(this.state.getMode()); - - } - - /** - * - * Change region keyboard color - * - * @param region Region to apply the color - * @param color Color to apply - * @param intensity Intensity wanted - */ - public void setRegionColor(Region region, Color color, Intensity intensity){ - // Save state - this.state.setRegionColor(region, color, intensity); - - // Set color - this.device.setColor(region, color, intensity); - - // Apply color - this.device.commit(this.state.getMode()); - - } - -} \ No newline at end of file -- cgit v1.2.3