|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiusej.wiiusejevents.GenericEvent
wiiusej.wiiusejevents.physicalevents.ButtonsEvent
public abstract class ButtonsEvent
Class which represents a buttons event.
Field Summary | |
---|---|
private short |
buttonsHeld
|
private short |
buttonsJustPressed
|
private short |
buttonsJustReleased
|
Constructor Summary | |
---|---|
ButtonsEvent(int id,
short buttonsJustPressed,
short buttonsJustReleased,
short buttonsHeld)
Constructor of the button Event. |
Method Summary | |
---|---|
protected 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 |
protected boolean |
isButtonHeld(short buttonBitsDefinition)
|
protected boolean |
isButtonJustPressed(short buttonBitsDefinition)
|
protected boolean |
isButtonJustReleased(short buttonBitsDefinition)
|
protected boolean |
isButtonPressed(short buttonBitsDefinition)
|
private void |
setAllButtons(short buttonsJustPressed,
short buttonsJustReleased,
short buttonsHeld)
Set all buttons in one method. |
java.lang.String |
toString()
|
Methods inherited from class wiiusej.wiiusejevents.GenericEvent |
---|
getWiimoteId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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()
protected boolean buttonTest(short buttonBitsDefinition, short buttons)
protected boolean isButtonJustPressed(short buttonBitsDefinition)
protected boolean isButtonJustReleased(short buttonBitsDefinition)
protected boolean isButtonHeld(short buttonBitsDefinition)
protected boolean isButtonPressed(short buttonBitsDefinition)
public java.lang.String toString()
toString
in class GenericEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |