From 687db1f65028c0b13fdeddd3f951cf29722740b8 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 28 May 2024 18:09:03 +0200 Subject: [PATCH] stop rumble --- GameControllerHandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GameControllerHandler.cpp b/GameControllerHandler.cpp index 2ff75b6..3fd1b0f 100644 --- a/GameControllerHandler.cpp +++ b/GameControllerHandler.cpp @@ -68,6 +68,9 @@ void GameControllerHandler::handleMessage(const std::string &message) { } else if (tokens[2] == "stop proximity alert") { this->rumble = false; + if (SDL_GameControllerRumble(controller, 0x0, 0x0, 1000) != 0) { + std::cerr << "Erreur lors de l'activation de la vibration : " << SDL_GetError() << std::endl; + } } } }