Skip to content

Commit 85011ff

Browse files
committed
Fix for gamepad rumbling stack
1 parent 6db3301 commit 85011ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/streaming_view.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ void StreamingView::terminate(bool terminateApp) {
308308

309309
session->stop(terminateApp);
310310

311+
int controllersCount = Application::getPlatform()->getInputManager()->getControllersConnectedCount();
312+
for (int i = 0; i < controllersCount; i++)
313+
Application::getPlatform()->getInputManager()->sendRumble(i, 0, 0);
314+
311315
bool hasOverlays =
312316
Application::getActivitiesStack().back() != this->getParentActivity();
313317
this->dismiss([this, hasOverlays] {

0 commit comments

Comments
 (0)