-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix new GUI, fix saving trackers config
- Loading branch information
Showing
8 changed files
with
161 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
src/main/java/io/eiren/vr/trackers/IMUReferenceAdjustedTracker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,29 @@ | ||
package io.eiren.vr.trackers; | ||
|
||
public class IMUReferenceAdjustedTracker<T extends IMUTracker & TrackerWithTPS & TrackerWithBattery> extends ReferenceAdjustedTracker implements TrackerWithTPS, TrackerWithBattery { | ||
public class IMUReferenceAdjustedTracker<T extends IMUTracker & TrackerWithTPS & TrackerWithBattery> extends ReferenceAdjustedTracker<T> implements TrackerWithTPS, TrackerWithBattery { | ||
|
||
public IMUReferenceAdjustedTracker(T tracker) { | ||
super(tracker); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
@Override | ||
public float getBatteryLevel() { | ||
return ((T) tracker).getBatteryLevel(); | ||
return tracker.getBatteryLevel(); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
@Override | ||
public float getBatteryVoltage() { | ||
return ((T) tracker).getBatteryVoltage(); | ||
return tracker.getBatteryVoltage(); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
@Override | ||
public float getTPS() { | ||
return ((T) tracker).getTPS(); | ||
return tracker.getTPS(); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
@Override | ||
public void dataTick() { | ||
((T) tracker).dataTick(); | ||
tracker.dataTick(); | ||
} | ||
|
||
} |
Oops, something went wrong.