| 
 | |||||||||
| 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.WRDataReadEvent
public class WRDataReadEvent
Read data event for Nintendo (R) Wii Remote (TM). Contains data returned from reading the flash memory or control registers.
| Field Summary | |
|---|---|
| static int | BYTES_DO_NOT_EXIST_ERRORIf the bytes you tried to read do not exist. | 
| static int | NO_ERRORIf there was no error reading bytes (this is good). | 
| static int | WRITE_REGISTER_ONLY_ERRORIf you tried read bytes from a write-only register. | 
| Fields inherited from class java.util.EventObject | 
|---|
| source | 
| Constructor Summary | |
|---|---|
| WRDataReadEvent(WiiRemote source,
                byte[] data)Creates a new WRDataReadEvent from the given input data array. | |
| Method Summary | |
|---|---|
|  byte[] | getData()Returns the data read from the flash memory/control register in the last read event. | 
|  int | getDataOffset()Returns the lower 2 bytes of the data offset of this read event. | 
|  int | getErrorCode()Returns the error code of this read event. | 
| 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 final int BYTES_DO_NOT_EXIST_ERROR
public static final int WRITE_REGISTER_ONLY_ERROR
public static final int NO_ERROR
| Constructor Detail | 
|---|
public WRDataReadEvent(WiiRemote source,
                       byte[] data)
source - the WiiRemote triggering this event.data - the byte data to process for flash memory/control register data.| Method Detail | 
|---|
public int getErrorCode()
public int getDataOffset()
public byte[] getData()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||