| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwiiremotej.WRExtension
wiiremotej.WRClassicControllerExtension
public class WRClassicControllerExtension
A class representing a Nintendo (R) Wii Remote (TM) Classic controller extension. It has information about the extension and can create WRClassicExtensionEvents. NOT IMPLEMENTED. DO NOT USE. SERIOUSLY, IT'S BORKED RIGHT NOW.
| Constructor Summary | |
|---|---|
| WRClassicControllerExtension(int payload)Creates a new WRClassicControllerExtension with the given payload. | |
| Method Summary | |
|---|---|
|  WRClassicControllerExtensionEvent | createWRExtensionEvent(WiiRemote source,
                       byte[] input,
                       int offset)Creates and returns a new WRClassicControllerExtensionEvent from the given input. | 
|  ClassicControllerCalibrationData | getCalibrationData()Returns the calibration information for the Classic Controller. | 
|  short | getCode()Returns the extension code for this extension, used by WRExtensionFactories in determining what kind of if the given extension is this kind of extension. | 
|  boolean | isPayloadValid(int payload)Checks if the given payload is valid for this extension. | 
| Methods inherited from class wiiremotej.WRExtension | 
|---|
| getPayload | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WRClassicControllerExtension(int payload)
payload - the number of bytes needed to create an event with this extension.| Method Detail | 
|---|
public WRClassicControllerExtensionEvent createWRExtensionEvent(WiiRemote source,
                                                                byte[] input,
                                                                int offset)
createWRExtensionEvent in class WRExtensionsource - the WiiRemote triggering this event.input - the data input from the classic controller.offset - the position of the first byte of extension data in input.
public ClassicControllerCalibrationData getCalibrationData()
public boolean isPayloadValid(int payload)
isPayloadValid in class WRExtensionpayload - the payload to check.
true if this extension will accept the given payload; otherwise, false.public short getCode()
getCode in class WRExtension| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||