Merge pull request #13963 from jordan-woyak/point-passthru-needs-bound-inputs

WiimoteEmu: Require IRPassthrough has any bound inputs to operate.
This commit is contained in:
JMC47 authored and GitHub committed 2025-10-09 14:05:16 -04:00
commit efa9245565
3 files changed
+10 -6

No files matched your search

@@ -497,7 +497,7 @@ void Wiimote::BuildDesiredWiimoteState(DesiredWiimoteState* target_state,
ConvertAccelData(GetTotalAcceleration(), ACCEL_ZERO_G << 2, ACCEL_ONE_G << 2);
// Calculate IR camera state.
if (m_ir_passthrough->enabled.GetValue())
if (m_ir_passthrough->enabled.GetValue() && m_ir_passthrough->AreInputsBound())
{
target_state->camera_points = GetPassthroughCameraPoints(m_ir_passthrough);
}