mirror of
https://github.com/modelec/GameController.git
synced 2026-03-18 21:40:43 +01:00
stop rumble
This commit is contained in:
@@ -68,6 +68,9 @@ void GameControllerHandler::handleMessage(const std::string &message) {
|
|||||||
}
|
}
|
||||||
else if (tokens[2] == "stop proximity alert") {
|
else if (tokens[2] == "stop proximity alert") {
|
||||||
this->rumble = false;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user