mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
Support arbitrary sensor id's for devices (#464)
This commit is contained in:
1 parent
c3d8eba264
commit
03eeb87498
5 files changed
+21
-20
No files matched your search
@@ -1,9 +1,9 @@
|
||||
package dev.slimevr.vr;
|
||||
|
||||
import dev.slimevr.vr.trackers.Tracker;
|
||||
import io.eiren.util.collections.FastList;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class Device {
|
||||
private String firmwareVersion;
|
||||
private String manufacturer;
|
||||
|
||||
private final FastList<Tracker> trackers = new FastList<>();
|
||||
private final HashMap<Integer, Tracker> trackers = new HashMap<>();
|
||||
|
||||
public Device() {
|
||||
this.id = nextLocalDeviceId.incrementAndGet();
|
||||
@@ -58,7 +58,7 @@ public class Device {
|
||||
return null;
|
||||
}
|
||||
|
||||
public FastList<Tracker> getTrackers() {
|
||||
public HashMap<Integer, Tracker> getTrackers() {
|
||||
return trackers;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user