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

Commit

Permalink
Avoid stopping vibration in WaveVR arm32 because it will crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
daoshengmu committed Dec 12, 2019
1 parent 97f6429 commit e3fb5aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/wavevr/cpp/DeviceDelegateWaveVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,17 @@ struct DeviceDelegateWaveVR::State {
1, WVR_Intensity(intensity));
} else {
// The remaining time is zero or exiting the immersive mode, stop the vibration.
#if !defined(__arm__) // It will crash at WaveVR SDK arm32, let's skip it.
WVR_TriggerVibration(controller.type, WVR_InputId_Max, 0, 0, WVR_Intensity_Normal);
#endif
controller.remainingVibrateTime = 0.0f;
}
} else if (controller.remainingVibrateTime > 0.0f) {
// While the haptic feedback is terminated from the client side,
// but it still have remaining time, we need to ask for stopping vibration.
#if !defined(__arm__) // It will crash at WaveVR SDK arm32, let's skip it.
WVR_TriggerVibration(controller.type, WVR_InputId_Max, 0, 0, (WVR_Intensity_Normal));
#endif
controller.remainingVibrateTime = 0.0f;
}
}
Expand Down

0 comments on commit e3fb5aa

Please sign in to comment.