|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwiiusej.WiiMoteEvent
public class WiiMoteEvent
Class that is a bean to be filled by the wiiuse API.
| Constructor Summary | |
|---|---|
WiiMoteEvent()
Default constructor |
|
WiiMoteEvent(int id)
Construct the Wiimote setting up the id. |
|
| Method Summary | |
|---|---|
void |
addIRpoint(int x,
int y)
Add IR Point in the list (Max 4 points) |
void |
EmptyIRPoints()
Clear IR points. |
float |
getBatteryLevel()
Get battery level. |
short |
getButtonsHeld()
get the int storing the buttons held |
short |
getButtonsJustPressed()
Get the int storing the buttons just pressed |
short |
getButtonsJustReleased()
Get the int storing the buttons just released |
GForce |
getGforce()
Get the gravity force. |
Point2DInteger[] |
getIRPoints()
Get list of IR points. |
short |
getLeds()
Get status of the leds . |
Orientation |
getOrientation()
|
int |
getWiimoteId()
Get Wiimote ID |
boolean |
isButtonAHeld()
|
boolean |
isButtonAJustPressed()
|
boolean |
isButtonAJustReleased()
|
boolean |
isButtonBHeld()
|
boolean |
isButtonBJustPressed()
|
boolean |
isButtonBJustReleased()
|
boolean |
isButtonDownHeld()
|
boolean |
isButtonDownJustPressed()
|
boolean |
isButtonDownJustReleased()
|
boolean |
isButtonHomeHeld()
|
boolean |
isButtonHomeJustPressed()
|
boolean |
isButtonHomeJustReleased()
|
boolean |
isButtonLeftHeld()
|
boolean |
isButtonLeftJustPressed()
|
boolean |
isButtonLeftJustReleased()
|
boolean |
isButtonMinusHeld()
|
boolean |
isButtonMinusJustPressed()
|
boolean |
isButtonMinusJustReleased()
|
boolean |
isButtonOneHeld()
|
boolean |
isButtonOneJustPressed()
|
boolean |
isButtonOneJustReleased()
|
boolean |
isButtonPlusHeld()
|
boolean |
isButtonPlusJustPressed()
|
boolean |
isButtonPlusJustReleased()
|
boolean |
isButtonRightHeld()
|
boolean |
isButtonRightJustPressed()
|
boolean |
isButtonRightJustReleased()
|
boolean |
isButtonTwoHeld()
|
boolean |
isButtonTwoJustPressed()
|
boolean |
isButtonTwoJustReleased()
|
boolean |
isButtonUpHeld()
|
boolean |
isButtonUpJustPressed()
|
boolean |
isButtonUpJustReleased()
|
boolean |
isConnected()
True if the wiimote is connected false otherwise. |
boolean |
isIrActive()
Tell if the IR Tracking is active. |
boolean |
isMotionSensingActive()
Get the flag indicating if the motion sensing is active. |
boolean |
isRumbleActive()
Get the status of rumble. |
boolean |
isSpeakerEnabled()
Tell if the speaker is enable for this wiimote |
boolean |
isThereAttachment()
Tell if there is an attachment to the Wiimote |
void |
setBatteryLevel(float batteryLevel)
Set level battery. |
void |
setButtonsHeld(short buttonsHeld)
set the int storing the buttons held |
void |
setButtonsJustPressed(short buttonsJustPressed)
set the int storing the buttons just pressed |
void |
setButtonsJustReleased(short buttonsJustReleased)
set the int storing the buttons just released |
void |
setConnected()
Set the connected value to true. |
void |
setDisconnected()
Set the connected value to false. |
void |
setGforce(float x,
float y,
float z)
Set the gravity force. |
void |
setIrActive()
Set the value isIrActive to true |
void |
setIrInactive()
Set the value isIrActive to true |
void |
setLeds(short leds)
Set Status of the leds. |
void |
setMotionSensingActive()
Set the motion sensing flag to active. |
void |
setMotionSensingInactive()
Set the motion sensing flag to inactive. |
void |
setOrientation(float r,
float p,
float y)
Set orientation of the wiimote. |
void |
setRumbleActive()
Set Rumble flag to Active. |
void |
setRumbleInactive()
Set Rumble flag to Inactive. |
void |
setSpeakerDisabled()
Set the flag for the speaker to "disabled" |
void |
setSpeakerEnabled()
Set the flag for the speaker to "enabled" |
void |
setThereIsAnAttachment()
Set the flag for the attachment to true |
void |
setThereIsNoAttachment()
Set the flag for the attachment to false |
void |
setWiimoteId(int wiimoteId)
Set Wiimote ID |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WiiMoteEvent()
public WiiMoteEvent(int id)
id - the Wiimote id| Method Detail |
|---|
public int getWiimoteId()
public void setWiimoteId(int wiimoteId)
wiimoteId - id of the wiimotepublic boolean isConnected()
public void setConnected()
public void setDisconnected()
public float getBatteryLevel()
public void setBatteryLevel(float batteryLevel)
batteryLevel - must be between 0 and 1public short getLeds()
public void setLeds(short leds)
leds - public boolean isSpeakerEnabled()
public void setSpeakerEnabled()
public void setSpeakerDisabled()
public boolean isThereAttachment()
public void setThereIsAnAttachment()
public void setThereIsNoAttachment()
public boolean isRumbleActive()
public void setRumbleActive()
public void setRumbleInactive()
public short getButtonsJustPressed()
public void setButtonsJustPressed(short buttonsJustPressed)
buttonsJustPressed - public short getButtonsJustReleased()
public void setButtonsJustReleased(short buttonsJustReleased)
buttonsJustReleased - public short getButtonsHeld()
public void setButtonsHeld(short buttonsHeld)
buttonsHeld - public boolean isIrActive()
public void setIrActive()
public void setIrInactive()
public Point2DInteger[] getIRPoints()
public void addIRpoint(int x,
int y)
x - x valuey - y valuepublic void EmptyIRPoints()
public boolean isMotionSensingActive()
public void setMotionSensingActive()
public void setMotionSensingInactive()
public Orientation getOrientation()
public void setOrientation(float r,
float p,
float y)
r - rollp - pitchy - yawpublic GForce getGforce()
public void setGforce(float x,
float y,
float z)
x - gravity force on x axisy - gravity force on y axisz - gravity force on z axispublic boolean isButtonOneJustPressed()
public boolean isButtonOneJustReleased()
public boolean isButtonOneHeld()
public boolean isButtonTwoJustPressed()
public boolean isButtonTwoJustReleased()
public boolean isButtonTwoHeld()
public boolean isButtonAJustPressed()
public boolean isButtonAJustReleased()
public boolean isButtonAHeld()
public boolean isButtonBJustPressed()
public boolean isButtonBJustReleased()
public boolean isButtonBHeld()
public boolean isButtonLeftJustPressed()
public boolean isButtonLeftJustReleased()
public boolean isButtonLeftHeld()
public boolean isButtonRightJustPressed()
public boolean isButtonRightJustReleased()
public boolean isButtonRightHeld()
public boolean isButtonUpJustPressed()
public boolean isButtonUpJustReleased()
public boolean isButtonUpHeld()
public boolean isButtonDownJustPressed()
public boolean isButtonDownJustReleased()
public boolean isButtonDownHeld()
public boolean isButtonMinusJustPressed()
public boolean isButtonMinusJustReleased()
public boolean isButtonMinusHeld()
public boolean isButtonPlusJustPressed()
public boolean isButtonPlusJustReleased()
public boolean isButtonPlusHeld()
public boolean isButtonHomeJustPressed()
public boolean isButtonHomeJustReleased()
public boolean isButtonHomeHeld()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||