|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
wiiremotej.event.WREvent
wiiremotej.event.WRIREvent
public class WRIREvent
IR Event for Nintendo (R) Wii Remote (TM). Contains information on IR input. The "resolution" of the IR camera is 1024X768. Note that the camera uses a standard cartesian coordinates system, such that the point 0,0 is the BOTTOM left corner of the screen. On computer screens, 0,0 is the TOP left corner.
Field Summary | |
---|---|
static int |
BASIC
Basic mode: the IR sensor reports only position data. |
static int |
EXTENDED
Extended mode: the IR sensor reports position and size data. |
static int |
FULL
Full mode: the IR sensor reports position, size, bounding box, and intensity. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
WRIREvent(WiiRemote source,
int mode,
byte[] data1,
byte[] data2)
Creates a new WRIREvent with the WiiRemote source, interleaved data, and mode. |
|
WRIREvent(WiiRemote source,
int mode,
byte[] data,
int offset)
Creates a new WRIREvent with the WiiRemote source, data, and mode. |
|
WRIREvent(WiiRemote source,
int mode,
IRLight[] IRLights)
Creates a new WRIREvent with the WiiRemote source, IRLights, and mode. |
Method Summary | |
---|---|
IRLight[] |
getIRLights()
Returns the array of IR lights seen by the IR sensor. |
int |
getMode()
Returns the mode of the IR sensor. |
Methods inherited from class wiiremotej.event.WREvent |
---|
getSource |
Methods inherited from class java.util.EventObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int BASIC
public static int EXTENDED
public static int FULL
Constructor Detail |
---|
public WRIREvent(WiiRemote source, int mode, byte[] data, int offset)
source
- the WiiRemote triggering this event.mode
- the mode the IR sensor is in.data
- the data for the lights detected by the IR sensor.offset
- first index of useful data in the array.public WRIREvent(WiiRemote source, int mode, byte[] data1, byte[] data2)
source
- the WiiRemote triggering this event.mode
- the mode the IR sensor is in.data1
- the first data packet for the lights detected by the IR sensor.data2
- the second data packet for the lights detected by the IR sensor.public WRIREvent(WiiRemote source, int mode, IRLight[] IRLights)
source
- the WiiRemote triggering this event.mode
- the mode the IR sensor is in.IRLights
- the array of IRLights detected.Method Detail |
---|
public IRLight[] getIRLights()
public int getMode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |