mirror of
https://github.com/ddeverill/SteamlessController.git
synced 2026-10-21 14:12:16 -05:00
Check vigem_target_ds4_update_ex return value; remove debug logging
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
61ccd6548d
commit
9f5a4bde6a
1 file changed
+6
-3
@@ -441,9 +441,12 @@ void VirtualController::Update(const uint8_t* buf, size_t n,
|
||||
r.bBatteryLvlSpecial = m_ds4BatterySpecial;
|
||||
}
|
||||
|
||||
vigem_target_ds4_update_ex(static_cast<PVIGEM_CLIENT>(m_client),
|
||||
static_cast<PVIGEM_TARGET>(m_target),
|
||||
ex);
|
||||
VIGEM_ERROR exErr = vigem_target_ds4_update_ex(
|
||||
static_cast<PVIGEM_CLIENT>(m_client),
|
||||
static_cast<PVIGEM_TARGET>(m_target),
|
||||
ex);
|
||||
if (!VIGEM_SUCCESS(exErr))
|
||||
printf("[ViGEm] ds4_update_ex failed: 0x%08X (bus driver may need update)\n", exErr);
|
||||
} else {
|
||||
XUSB_REPORT report = TranslateX360(buf, n);
|
||||
|
||||
|
||||
Reference in new issue
Block a user