Fixed interpretation of roll yaw and pitch. Increased time to sleep between to events send to the wiimote.
git-svn-id: svn://svn.code.sf.net/p/wiigee/code/trunk@96 c7eff9ee-dd40-0410-8832-91a4d88773cf
This commit is contained in:
@@ -28,6 +28,13 @@ import java.util.EventObject;
|
||||
|
||||
import org.wiigee.device.Device;
|
||||
|
||||
/**
|
||||
* An ActionStartEvent is an Event where other different events can
|
||||
* be derived from, if they can be considered as an event actually starting
|
||||
* a process like e.g. Training, Recognition, ...
|
||||
*
|
||||
* @author Benjamin 'BePo' Poppinga
|
||||
*/
|
||||
public class ActionStartEvent extends EventObject {
|
||||
|
||||
protected boolean trainbutton;
|
||||
|
||||
@@ -27,6 +27,13 @@ package org.wiigee.event;
|
||||
import java.util.EventObject;
|
||||
import org.wiigee.device.Device;
|
||||
|
||||
/**
|
||||
* An ActionStopEvent is an Event where other different events can
|
||||
* be derived from, if they can be considered as an event actually stopping
|
||||
* a process like e.g. Training, Recognition, ...
|
||||
*
|
||||
* @author Benjamin 'BePo' Poppinga
|
||||
*/
|
||||
public class ActionStopEvent extends EventObject {
|
||||
|
||||
public ActionStopEvent(Device source) {
|
||||
|
||||
@@ -51,6 +51,8 @@ import org.wiigee.device.*;
|
||||
* Button 15 unknown
|
||||
* Button 16 unknown
|
||||
*
|
||||
* There can be other interpretations of buttons for other devices.
|
||||
*
|
||||
* @author Benjamin 'BePo' Poppinga
|
||||
*/
|
||||
public class ButtonPressedEvent extends ActionStartEvent {
|
||||
|
||||
@@ -26,6 +26,11 @@ package org.wiigee.event;
|
||||
|
||||
import org.wiigee.device.Device;
|
||||
|
||||
/**
|
||||
* This Event gets fired, if the Device starts to move.
|
||||
*
|
||||
* @author Benjamin 'BePo' Poppinga
|
||||
*/
|
||||
public class MotionStartEvent extends ActionStartEvent {
|
||||
|
||||
public MotionStartEvent(Device source) {
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.wiigee.device.Device;
|
||||
/**
|
||||
*
|
||||
* This event would be generated if a motion stops.
|
||||
* contains: source (wiimote).
|
||||
* contains: source.
|
||||
*
|
||||
* @author Benjamin 'BePo' Poppinga
|
||||
*/
|
||||
@@ -37,7 +37,6 @@ public class MotionStopEvent extends ActionStopEvent {
|
||||
|
||||
public MotionStopEvent(Device source) {
|
||||
super(source);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ import java.util.EventObject;
|
||||
import org.wiigee.logic.ProcessingUnit;
|
||||
|
||||
/**
|
||||
*
|
||||
* This is a StateEvent, telling the listeners in which state of recognition
|
||||
* the tool is:
|
||||
* 1 = training,
|
||||
|
||||
@@ -27,7 +27,6 @@ package org.wiigee.event;
|
||||
import java.util.EventListener;
|
||||
|
||||
/**
|
||||
*
|
||||
* This is the StateListener interface which has to be implemented
|
||||
* by any application which should receive recognized statechanges.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user