wiiusej.wiiusejevents.physicalevents
Class NunchukButtonsEvent
java.lang.Object
wiiusej.wiiusejevents.GenericEvent
wiiusej.wiiusejevents.physicalevents.ButtonsEvent
wiiusej.wiiusejevents.physicalevents.NunchukButtonsEvent
public class NunchukButtonsEvent
- extends ButtonsEvent
Class which represents a buttons event for a generic event. It means buttons
from a wiimote.
- Author:
- guiguito
Constructor Summary |
NunchukButtonsEvent(int id,
short buttonsJustPressed,
short buttonsJustReleased,
short buttonsHeld)
Constructor of the nunchuk button Event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NUNCHUK_BUTTON_Z
private static short NUNCHUK_BUTTON_Z
NUNCHUK_BUTTON_C
private static short NUNCHUK_BUTTON_C
NUNCHUK_BUTTON_ALL
private static short NUNCHUK_BUTTON_ALL
NunchukButtonsEvent
public NunchukButtonsEvent(int id,
short buttonsJustPressed,
short buttonsJustReleased,
short buttonsHeld)
- Constructor of the nunchuk button Event.
- Parameters:
id
- id of the wiimote.buttonsJustPressed
- buttons just pressed.buttonsJustReleased
- buttons just released.buttonsHeld
- buttons just pressed.
isButtonZJustPressed
public boolean isButtonZJustPressed()
isButtonZJustReleased
public boolean isButtonZJustReleased()
isButtonZeHeld
public boolean isButtonZeHeld()
isButtonZPressed
public boolean isButtonZPressed()
isButtonCJustPressed
public boolean isButtonCJustPressed()
isButtonCJustReleased
public boolean isButtonCJustReleased()
isButtonCHeld
public boolean isButtonCHeld()
isButtonCPressed
public boolean isButtonCPressed()
toString
public java.lang.String toString()
- Overrides:
toString
in class ButtonsEvent