mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 05:00:27 +02:00
Update wup028_adapter.cpp
This commit is contained in:
1 parent
0c349a9296
commit
9ee14e582d
1 file changed
+1
@@ -387,6 +387,7 @@ bool Read(std::array<PADStatus, 4>& statuses) {
|
||||
bool SetRumble(uint32_t port, bool enabled) {
|
||||
if (port >= g_rumble.size() || !g_connected.load(std::memory_order_acquire)) return false;
|
||||
std::lock_guard lock(g_mutex);
|
||||
if (!g_connected.load(std::memory_order_acquire) || g_statuses[port].err != PAD_ERR_NONE) return false;
|
||||
g_rumble[port] = enabled ? 1 : 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user