Basis voor Gesture herkenning toegevoegd / verbeterd. WiimoteDevice gebruikt nu ook een MotionDevice om MotionData op te slaan en opnieuw af te spelen.

This commit is contained in:
2012-03-09 09:55:40 +00:00
parent a12588c048
commit a50f873d39
24 changed files with 374 additions and 153 deletions

View File

@@ -16,12 +16,15 @@
*/
package wiiusej.values;
import java.io.Serializable;
/**
* Represents gravity force on each axis.
*
* @author guiguito
*/
public class GForce {
public class GForce implements Serializable {
protected static final long serialVersionUID = 1L;
private float x;
private float y;

View File

@@ -16,12 +16,15 @@
*/
package wiiusej.values;
import java.io.Serializable;
/**
* Class that represents the orientation of the wiimote.
*
* @author guiguito
*/
public class Orientation {
public class Orientation implements Serializable {
protected static final long serialVersionUID = 1L;
private float roll;
private float pitch;

View File

@@ -16,12 +16,15 @@
*/
package wiiusej.values;
import java.io.Serializable;
/**
* Represents raw acceleration on each axis.
*
* @author guiguito
*/
public class RawAcceleration {
public class RawAcceleration implements Serializable {
protected static final long serialVersionUID = 1L;
private short x;
private short y;

View File

@@ -16,12 +16,15 @@
*/
package wiiusej.wiiusejevents;
import java.io.Serializable;
/**
* Abstract mother class representing an event with a wiimote id.
*
* @author guiguito
*/
public abstract class GenericEvent {
public abstract class GenericEvent implements Serializable {
protected static final long serialVersionUID = 1L;
/* ID */
private int wiimoteId = -1;

View File

@@ -27,8 +27,9 @@ import wiiusej.wiiusejevents.GenericEvent;
* @author guiguito
*/
public class MotionSensingEvent extends GenericEvent {
protected static final long serialVersionUID = 1L;
/* Motion Sensing */
/* Motion Sensing */
private Orientation orientation;
private GForce gforce;
private RawAcceleration acceleration;