[TLAC] Fix crash when an Xinput is connected, the slider emulator is disabled, and rumble is enabled
This commit is contained in:
@@ -252,7 +252,7 @@ namespace TLAC::Input
|
||||
SetTapStates(i, elapsed);
|
||||
}
|
||||
|
||||
if (rumble && TLAC::Components::TouchSliderEmulator::LatestInstance->isSliderTouched() && TLAC::Components::TargetInspector::ShouldVibrate)
|
||||
if (rumble && TLAC::Components::touchSliderEmulatorIsEnabled && TLAC::Components::TouchSliderEmulator::LatestInstance->isSliderTouched() && TLAC::Components::TargetInspector::ShouldVibrate)
|
||||
{
|
||||
XINPUT_VIBRATION vibration;
|
||||
ZeroMemory(&vibration, sizeof(XINPUT_VIBRATION));
|
||||
|
||||
Reference in New Issue
Block a user