【IBP按钮时间使用仿真时间处理】

This commit is contained in:
weizhihong 2023-05-30 17:30:53 +08:00
parent 38c30520f4
commit 4e5e83202c
1 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
VirtualRealityIbp.SquareButton button = (VirtualRealityIbp.SquareButton) element;
if (!button.isEffective()) {
button.setEffective(true);
button.setPressTime(LocalDateTime.now());
button.setPressTime(simulation.getCorrectSystemTime());
}
break;
}
@ -272,7 +272,7 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
if (!preResetButton.isPressed())
continue;
}
LocalDateTime now = LocalDateTime.now();
LocalDateTime now = simulation.getCorrectSystemTime();
for (VirtualRealityIbp.IbpElement ibpElement : ibp.queryByMean(VirtualRealityIbp.Mean.AXLE_PRE_RESET)) {
VirtualRealityIbp.SquareButton button = (VirtualRealityIbp.SquareButton) ibpElement;
if (!button.isPressed() || !button.isEffective())