From 06dd7174a7703e296ccc0c2baad07456accf3ac1 Mon Sep 17 00:00:00 2001 From: bepo23 Date: Tue, 14 Jul 2009 07:51:41 +0000 Subject: [PATCH] GUI improvements, Settings Tab added, Dynamic activation of Acceleration, Infrared and Wii MotionPlus now possible, but not every modus works yet. git-svn-id: svn://svn.code.sf.net/p/wiigee/code/trunk@100 c7eff9ee-dd40-0410-8832-91a4d88773cf --- src/org/wiigee/control/Wiigee.java | 4 ++-- src/org/wiigee/device/Device.java | 14 +++----------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/org/wiigee/control/Wiigee.java b/src/org/wiigee/control/Wiigee.java index 049909a..fff9e7e 100644 --- a/src/org/wiigee/control/Wiigee.java +++ b/src/org/wiigee/control/Wiigee.java @@ -36,8 +36,8 @@ import org.wiigee.util.Log; */ public class Wiigee { - protected static String version = "1.5.4 alpha"; - protected static String releasedate = "20090706"; + protected static String version = "1.5.5 alpha"; + protected static String releasedate = "20090714"; protected Wiigee() { Log.write("This is wiigee version "+version+" ("+releasedate+")"); diff --git a/src/org/wiigee/device/Device.java b/src/org/wiigee/device/Device.java index 2ed529c..6413610 100644 --- a/src/org/wiigee/device/Device.java +++ b/src/org/wiigee/device/Device.java @@ -49,7 +49,7 @@ public class Device { protected int closegesturebutton; // Functional - protected boolean accelerationenabled; + protected boolean accelerationEnabled; // Filters, can filter the data stream protected Vector accfilters = new Vector(); @@ -150,16 +150,8 @@ public class Device { return this.processingunit; } - public boolean accelerationEnabled() { - return this.accelerationenabled; - } - - public void enableAccelerationSensors() throws IOException { - this.accelerationenabled = true; - } - - public void disableAccelerationSensors() throws IOException { - this.accelerationenabled = false; + public void setAccelerationEnabled(boolean enabled) throws IOException { + this.accelerationEnabled = enabled; } public void loadGesture(String filename) {