We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b168d7b commit 0708ad9Copy full SHA for 0708ad9
joy/src/joy.cpp
@@ -485,7 +485,10 @@ void Joy::eventThread()
485
status = future_.wait_for(std::chrono::seconds(0));
486
487
if (haptic_ != nullptr && autocenter_) {
488
- SDL_HapticSetAutocenter(haptic_, autocenter_);
+ int result = SDL_HapticSetAutocenter(haptic_, autocenter_);
489
+ if (result) {
490
+ RCLCPP_WARN(get_logger(), "Failed to set autocenter: %s", SDL_GetError());
491
+ }
492
}
493
} while (status == std::future_status::timeout);
494
0 commit comments