first working version on wiiuse 0.10
git-svn-id: http://wiiusej.googlecode.com/svn/trunk@59 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
@@ -30,7 +30,7 @@ public class EventsGatherer {
|
||||
* @param e
|
||||
* the event to add.
|
||||
*/
|
||||
private void addEvent(WiiUseApiEvent e) {
|
||||
private void addEvent(WiiUseApiEvent e) {
|
||||
events[index] = e;
|
||||
index++;
|
||||
}
|
||||
@@ -136,7 +136,7 @@ public class EventsGatherer {
|
||||
*/
|
||||
public void addStatusEvent(int id, boolean connect, float batt, short led,
|
||||
boolean speak, int attach, boolean rumbleState,
|
||||
float orientationThreshold, float accelerationThreshold,
|
||||
float orientationThreshold, int accelerationThreshold,
|
||||
float alphaSmooth, boolean continuousState, boolean smoothingState,
|
||||
boolean irState, boolean motionSensingState) {
|
||||
StatusEvent evt = new StatusEvent(id, connect, batt, led, speak,
|
||||
|
||||
@@ -29,7 +29,7 @@ public class StatusEvent extends WiiUseApiEvent {
|
||||
|
||||
private float orientationThreshold = 0;
|
||||
|
||||
private float accelerationThreshold = 0;
|
||||
private int accelerationThreshold = 0;
|
||||
|
||||
private float alphaSmoothing = 0;
|
||||
|
||||
@@ -87,7 +87,7 @@ public class StatusEvent extends WiiUseApiEvent {
|
||||
*/
|
||||
public StatusEvent(int id, boolean connect, float batt, short led,
|
||||
boolean speak, int attach, boolean rumbleState,
|
||||
float orientationThreshold, float accelerationThreshold,
|
||||
float orientationThreshold, int accelerationThreshold,
|
||||
float alphaSmooth, boolean continuousState, boolean smoothingState,
|
||||
boolean irState, boolean motionSensingState) {
|
||||
super(id, WiiUseApiEvent.STATUS_EVENT);
|
||||
@@ -174,7 +174,7 @@ public class StatusEvent extends WiiUseApiEvent {
|
||||
*
|
||||
* @return the accelerationThreshold
|
||||
*/
|
||||
public float getAccelerationThreshold() {
|
||||
public int getAccelerationThreshold() {
|
||||
return accelerationThreshold;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user