|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiusej.wiiusejevents.GenericEvent
wiiusej.wiiusejevents.physicalevents.ExpansionEvent
wiiusej.wiiusejevents.physicalevents.NunchukEvent
public class NunchukEvent
This class represents the values from the joystick and its events.
Field Summary | |
---|---|
(package private) NunchukButtonsEvent |
buttonsEvent
|
(package private) JoystickEvent |
nunchukJoystickEvent
|
(package private) MotionSensingEvent |
nunchukMotionSensingEvent
|
Constructor Summary | |
---|---|
NunchukEvent(int id,
short buttonsJustPressed,
short buttonsJustReleased,
short buttonsHeld,
float orientationThreshold,
int accelerationThreshold,
boolean smoothingState,
float alphaSmooth,
float r,
float p,
float ya,
float ar,
float ap,
float x,
float y,
float z,
short xx,
short yy,
short zz,
float angle,
float magnitude,
short max1,
short max2,
short min1,
short min2,
short center1,
short center2)
Constructor of NunchukEvent. |
Method Summary | |
---|---|
NunchukButtonsEvent |
getButtonsEvent()
Get joystick buttons event. |
JoystickEvent |
getNunchukJoystickEvent()
Get the nunchuk joystick event. |
MotionSensingEvent |
getNunchukMotionSensingEvent()
Get the nunchuk motion sensing event. |
boolean |
isThereMotionSensingEvent()
Tell if there is a nunchuk motion sensing Event. |
boolean |
isThereNunchukJoystickEvent()
Tell if there is a nunchuk joystick event. |
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 |
---|
NunchukButtonsEvent buttonsEvent
MotionSensingEvent nunchukMotionSensingEvent
JoystickEvent nunchukJoystickEvent
Constructor Detail |
---|
public NunchukEvent(int id, short buttonsJustPressed, short buttonsJustReleased, short buttonsHeld, float orientationThreshold, int accelerationThreshold, boolean smoothingState, float alphaSmooth, float r, float p, float ya, float ar, float ap, float x, float y, float z, short xx, short yy, short zz, float angle, float magnitude, short max1, short max2, short min1, short min2, short center1, short center2)
id
- id of the wiimote.buttonsJustPressed
- buttons just pressed.buttonsJustReleased
- buttons just released.buttonsHeld
- buttons just pressed.orientationThreshold
- value of the minimum angle between two events with the
accelerometer.accelerationThreshold
- value of the value variation between two events with the
accelerometer.smoothingState
- true if smoothing flag is activated.alphaSmooth
- value of the alpha smoothing parameter.r
- roll.p
- pitch.ya
- yaw.ar
- absolute roll.ap
- absolute pitch.x
- gravity force on x axis.y
- gravity force on y axis.z
- gravity force on z axis.xx
- raw acceleration on x axis.yy
- raw acceleration on y axis.zz
- raw acceleration on z axis.angle
- angle the joystick is being held.magnitude
- magnitude of the joystick (range 0-1).max1
- maximum joystick value 1.max2
- maximum joystick value 2.min1
- minimum joystick value 1.min2
- minimum joystick value 2.center1
- center joystick value 1.center2
- center joystick value 2.Method Detail |
---|
public boolean isThereMotionSensingEvent()
public boolean isThereNunchukJoystickEvent()
public NunchukButtonsEvent getButtonsEvent()
public MotionSensingEvent getNunchukMotionSensingEvent()
public JoystickEvent getNunchukJoystickEvent()
public java.lang.String toString()
toString
in class ExpansionEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |