|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiusej.wiiuseapievents.WiimoteEvent
wiiusej.wiiuseapievents.ButtonsEvent
public class ButtonsEvent
Class which represents a buttons event.
Field Summary | |
---|---|
private short |
buttonsHeld
|
private short |
buttonsJustPressed
|
private short |
buttonsJustReleased
|
private static short |
WIIMOTE_BUTTON_A
|
private static short |
WIIMOTE_BUTTON_ALL
|
private static short |
WIIMOTE_BUTTON_B
|
private static short |
WIIMOTE_BUTTON_DOWN
|
private static short |
WIIMOTE_BUTTON_HOME
|
private static short |
WIIMOTE_BUTTON_LEFT
|
private static short |
WIIMOTE_BUTTON_MINUS
|
private static short |
WIIMOTE_BUTTON_ONE
|
private static short |
WIIMOTE_BUTTON_PLUS
|
private static short |
WIIMOTE_BUTTON_RIGHT
|
private static short |
WIIMOTE_BUTTON_TWO
|
private static int |
WIIMOTE_BUTTON_UNKNOWN
|
private static short |
WIIMOTE_BUTTON_UP
|
private static short |
WIIMOTE_BUTTON_ZACCEL_BIT4
|
private static short |
WIIMOTE_BUTTON_ZACCEL_BIT5
|
private static short |
WIIMOTE_BUTTON_ZACCEL_BIT6
|
private static short |
WIIMOTE_BUTTON_ZACCEL_BIT7
|
Constructor Summary | |
---|---|
ButtonsEvent(int id,
short buttonsJustPressed,
short buttonsJustReleased,
short buttonsHeld)
Constructor of the button Event. |
Method Summary | |
---|---|
private boolean |
buttonTest(short buttonBitsDefinition,
short buttons)
BUTTONS Methods ***************** |
short |
getButtonsHeld()
get the short storing the buttons held |
short |
getButtonsJustPressed()
Get the short storing the buttons just pressed |
short |
getButtonsJustReleased()
Get the short storing the buttons just released |
boolean |
isButtonAHeld()
|
boolean |
isButtonAJustPressed()
|
boolean |
isButtonAJustReleased()
|
boolean |
isButtonAPressed()
|
boolean |
isButtonBHeld()
|
boolean |
isButtonBJustPressed()
|
boolean |
isButtonBJustReleased()
|
boolean |
isButtonBPressed()
|
boolean |
isButtonDownHeld()
|
boolean |
isButtonDownJustPressed()
|
boolean |
isButtonDownJustReleased()
|
boolean |
isButtonDownPressed()
|
private boolean |
isButtonHeld(short buttonBitsDefinition)
|
boolean |
isButtonHomeHeld()
|
boolean |
isButtonHomeJustPressed()
|
boolean |
isButtonHomeJustReleased()
|
boolean |
isButtonHomePressed()
|
private boolean |
isButtonJustPressed(short buttonBitsDefinition)
|
private boolean |
isButtonJustReleased(short buttonBitsDefinition)
|
boolean |
isButtonLeftHeld()
|
boolean |
isButtonLeftJustPressed()
|
boolean |
isButtonLeftJustReleased()
|
boolean |
isButtonLeftPressed()
|
boolean |
isButtonMinusHeld()
|
boolean |
isButtonMinusJustPressed()
|
boolean |
isButtonMinusJustReleased()
|
boolean |
isButtonMinusPressed()
|
boolean |
isButtonOneHeld()
|
boolean |
isButtonOneJustPressed()
|
boolean |
isButtonOneJustReleased()
|
boolean |
isButtonOnePressed()
|
boolean |
isButtonPlusHeld()
|
boolean |
isButtonPlusJustPressed()
|
boolean |
isButtonPlusJustReleased()
|
boolean |
isButtonPlusPressed()
|
private boolean |
isButtonPressed(short buttonBitsDefinition)
|
boolean |
isButtonRightHeld()
|
boolean |
isButtonRightJustPressed()
|
boolean |
isButtonRightJustReleased()
|
boolean |
isButtonRightPressed()
|
boolean |
isButtonTwoHeld()
|
boolean |
isButtonTwoJustPressed()
|
boolean |
isButtonTwoJustReleased()
|
boolean |
isButtonTwoPressed()
|
boolean |
isButtonUpHeld()
|
boolean |
isButtonUpJustPressed()
|
boolean |
isButtonUpJustReleased()
|
boolean |
isButtonUpPressed()
|
private void |
setAllButtons(short buttonsJustPressed,
short buttonsJustReleased,
short buttonsHeld)
Set all buttons in one method. |
java.lang.String |
toString()
|
Methods inherited from class wiiusej.wiiuseapievents.WiimoteEvent |
---|
getWiimoteId, setWiimoteId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static short WIIMOTE_BUTTON_TWO
private static short WIIMOTE_BUTTON_ONE
private static short WIIMOTE_BUTTON_B
private static short WIIMOTE_BUTTON_A
private static short WIIMOTE_BUTTON_MINUS
private static short WIIMOTE_BUTTON_ZACCEL_BIT6
private static short WIIMOTE_BUTTON_ZACCEL_BIT7
private static short WIIMOTE_BUTTON_HOME
private static short WIIMOTE_BUTTON_LEFT
private static short WIIMOTE_BUTTON_RIGHT
private static short WIIMOTE_BUTTON_DOWN
private static short WIIMOTE_BUTTON_UP
private static short WIIMOTE_BUTTON_PLUS
private static short WIIMOTE_BUTTON_ZACCEL_BIT4
private static short WIIMOTE_BUTTON_ZACCEL_BIT5
private static int WIIMOTE_BUTTON_UNKNOWN
private static short WIIMOTE_BUTTON_ALL
private short buttonsJustPressed
private short buttonsJustReleased
private short buttonsHeld
Constructor Detail |
---|
public ButtonsEvent(int id, short buttonsJustPressed, short buttonsJustReleased, short buttonsHeld)
id
- id of the wiimote concerned.buttonsJustPressed
- buttons just pressed.buttonsJustReleased
- buttons just released.buttonsHeld
- buttons just held.Method Detail |
---|
private void setAllButtons(short buttonsJustPressed, short buttonsJustReleased, short buttonsHeld)
buttonsJustPressed
- buttonsJustReleased
- buttonsHeld
- public short getButtonsJustPressed()
public short getButtonsJustReleased()
public short getButtonsHeld()
private boolean buttonTest(short buttonBitsDefinition, short buttons)
private boolean isButtonJustPressed(short buttonBitsDefinition)
private boolean isButtonJustReleased(short buttonBitsDefinition)
private boolean isButtonHeld(short buttonBitsDefinition)
private boolean isButtonPressed(short buttonBitsDefinition)
public boolean isButtonOneJustPressed()
public boolean isButtonOneJustReleased()
public boolean isButtonOneHeld()
public boolean isButtonOnePressed()
public boolean isButtonTwoJustPressed()
public boolean isButtonTwoJustReleased()
public boolean isButtonTwoHeld()
public boolean isButtonTwoPressed()
public boolean isButtonAJustPressed()
public boolean isButtonAJustReleased()
public boolean isButtonAHeld()
public boolean isButtonAPressed()
public boolean isButtonBJustPressed()
public boolean isButtonBJustReleased()
public boolean isButtonBHeld()
public boolean isButtonBPressed()
public boolean isButtonLeftJustPressed()
public boolean isButtonLeftJustReleased()
public boolean isButtonLeftHeld()
public boolean isButtonLeftPressed()
public boolean isButtonRightJustPressed()
public boolean isButtonRightJustReleased()
public boolean isButtonRightHeld()
public boolean isButtonRightPressed()
public boolean isButtonUpJustPressed()
public boolean isButtonUpJustReleased()
public boolean isButtonUpHeld()
public boolean isButtonUpPressed()
public boolean isButtonDownJustPressed()
public boolean isButtonDownJustReleased()
public boolean isButtonDownHeld()
public boolean isButtonDownPressed()
public boolean isButtonMinusJustPressed()
public boolean isButtonMinusJustReleased()
public boolean isButtonMinusHeld()
public boolean isButtonMinusPressed()
public boolean isButtonPlusJustPressed()
public boolean isButtonPlusJustReleased()
public boolean isButtonPlusHeld()
public boolean isButtonPlusPressed()
public boolean isButtonHomeJustPressed()
public boolean isButtonHomeJustReleased()
public boolean isButtonHomeHeld()
public boolean isButtonHomePressed()
public java.lang.String toString()
toString
in class WiimoteEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |