Implement AutoBone into the protocol (#187)

Implement event-based AutoBoneHandler & more
This commit is contained in:
Butterscotch! authored and GitHub committed 2022-06-01 16:59:17 +03:00
1 parent 766cf9ae72
commit 215f3b9f44
11 files changed
+758 -372

No files matched your search

+7
View File
@@ -27,6 +27,7 @@ import java.net.UnknownHostException;
import java.util.*;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.function.Consumer;
import dev.slimevr.autobone.AutoBoneHandler;
public class VRServer extends Thread {
@@ -44,6 +45,7 @@ public class VRServer extends Thread {
private final List<? extends ShareableTracker> shareTrackers;
private final BVHRecorder bvhRecorder;
private final SerialHandler serialHandler;
private final AutoBoneHandler autoBoneHandler;
private final ProtocolAPI protocolAPI;
private final String configPath;
@@ -57,6 +59,7 @@ public class VRServer extends Thread {
loadConfig();
serialHandler = new SerialHandler();
autoBoneHandler = new AutoBoneHandler(this);
protocolAPI = new ProtocolAPI(this);
hmdTracker = new HMDTracker("HMD");
@@ -356,6 +359,10 @@ public class VRServer extends Thread {
return this.serialHandler;
}
public AutoBoneHandler getAutoBoneHandler() {
return this.autoBoneHandler;
}
public ProtocolAPI getProtocolAPI() {
return protocolAPI;
}