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

Commit

Permalink
Clear select and squeeze frame Ids when it is not in the immersive mo…
Browse files Browse the repository at this point in the history
…de. (#3239)
  • Loading branch information
daoshengmu authored Apr 23, 2020
1 parent 2cb0f59 commit 51ddf89
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 51ddf89

Please sign in to comment.