Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Clear select and squeeze frame ids when it is not in the immersive mode. #3239

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/src/main/cpp/ControllerContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,10 @@ ControllerContainer::SetFrameId(const uint64_t aFrameId) {
m.lastImmersiveFrameId = aFrameId ? aFrameId : m.immersiveFrameId;
} else {
m.lastImmersiveFrameId = 0;
for (Controller& controller: m.list) {
controller.selectActionStartFrameId = controller.selectActionStopFrameId = 0;
controller.squeezeActionStartFrameId = controller.squeezeActionStopFrameId = 0;
}
}
m.immersiveFrameId = aFrameId;
}
Expand Down