From 2afd2ff86a5e523c7f898f1472002cf303cdc17f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 15 Mar 2024 18:55:39 +0100 Subject: [PATCH] Staturate haptics amplitude to 1.0 --- client/scenes/stream_actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scenes/stream_actions.cpp b/client/scenes/stream_actions.cpp index a3d2d208..5c87abfb 100644 --- a/client/scenes/stream_actions.cpp +++ b/client/scenes/stream_actions.cpp @@ -84,7 +84,7 @@ void scenes::stream::operator()(to_headset::haptics && haptics) return; if (haptics.amplitude > 0) - application::haptic_start(action, XR_NULL_PATH, haptics.duration.count(), haptics.frequency, haptics.amplitude); + application::haptic_start(action, XR_NULL_PATH, haptics.duration.count(), haptics.frequency, std::min(1.0f, haptics.amplitude)); else application::haptic_stop(action, XR_NULL_PATH); }