Skip to content

Commit

Permalink
Implemented rumble on multiple controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Apr 8, 2024
1 parent b5b4599 commit 6064d7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/public/libultra/os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ int32_t osAiSetNextBuffer(void *buff, uint32_t len) {
}

int32_t __osMotorAccess(OSPfs* pfs, uint32_t vibrate) {
auto interface = LUS::Context::GetInstance()->GetControlDeck()->GetControllerByPort(pfs->channel)->GetRumble();
if (vibrate) {
interface->StartRumble();
} else {
interface->StopRumble();
}

return 0;
}

Expand Down

0 comments on commit 6064d7b

Please sign in to comment.