Skip to content

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 committed 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
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.