【IBP按钮时间使用仿真时间处理】
This commit is contained in:
parent
38c30520f4
commit
4e5e83202c
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue