Getracht de acceleratie normalisatie van wiigee te benaderen. Dit lukt redelijk, maar niet goed genoeg om zonder de filters te hoeven tunen direct goede herkenning te krijgen.
This commit is contained in:
@@ -21,6 +21,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import javax.swing.event.EventListenerList;
|
||||
|
||||
import wiiusej.values.Calibration;
|
||||
import wiiusej.values.RawAcceleration;
|
||||
import wiiusej.wiiusejevents.utils.EventsGatherer;
|
||||
import wiiusej.wiiusejevents.utils.WiiUseApiListener;
|
||||
import wiiusej.wiiusejevents.wiiuseapievents.WiiUseApiEvent;
|
||||
@@ -661,4 +663,11 @@ public class WiiUseApiManager extends Thread {
|
||||
shutdown();
|
||||
}
|
||||
|
||||
public Calibration getCalibration(int id) {
|
||||
short[] data = wiiuse.getCalibration(id);
|
||||
return new Calibration(
|
||||
new RawAcceleration(data[0], data[1], data[2]),
|
||||
new RawAcceleration(data[3], data[4], data[5]));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user