|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwiiremotej.WiiRemoteExtension
wiiremotej.GuitarExtension
public class GuitarExtension
A class representing a Nintendo (R) Wii Remote (TM) Guitar extension. It has information about the extension and can create WRGuitarExtensionEvents.
| Constructor Summary | |
|---|---|
GuitarExtension(int payload)
Creates a new GuitarExtension with the given payload. |
|
| Method Summary | |
|---|---|
WRGuitarExtensionEvent |
createWRExtensionEvent(WiiRemote source,
byte[] input,
int offset)
Creates and returns a new WRGuitarExtensionEvent from the given input. |
void |
decryptExtensionInput(byte[] bytes,
int firstIndex,
int len)
Applies any necessary transformation to the specified byte array to decrypt extension input. |
GuitarCalibrationData |
getCalibrationData()
Returns the calibration information for the Guitar. |
short |
getCode()
Returns the extension code for this extension, used by WRExtensionFactories in determining what kind of extension this is. |
boolean |
isPayloadValid(int payload)
Checks if the given payload is valid for this extension. |
| Methods inherited from class wiiremotej.WiiRemoteExtension |
|---|
getPayload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GuitarExtension(int payload)
payload - the number of bytes needed to create an event with this extension.| Method Detail |
|---|
public WRGuitarExtensionEvent createWRExtensionEvent(WiiRemote source,
byte[] input,
int offset)
createWRExtensionEvent in class WiiRemoteExtensionsource - the WiiRemote triggering this event.input - the data input from the guitar.offset - the position of the first byte of extension data in input.
public GuitarCalibrationData getCalibrationData()
public boolean isPayloadValid(int payload)
isPayloadValid in class WiiRemoteExtensionpayload - the payload to check.
true if this extension will accept the given payload; otherwise, false.
public void decryptExtensionInput(byte[] bytes,
int firstIndex,
int len)
decryptExtensionInput in class WiiRemoteExtensionbytes - the byte array to decrypt.firstIndex - the first index to decrypt.len - the number of bytes to decrypt.public short getCode()
getCode in class WiiRemoteExtension
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||