NamcoGuncon: Only update trigger for offscreen on change

pull/2143/head
Connor McLaughlin 4 years ago
parent 9af822dc9c
commit 1e7e52718e

@ -69,8 +69,12 @@ void NamcoGunCon::SetButtonState(Button button, bool pressed)
{
if (button == Button::ShootOffscreen)
{
m_shoot_offscreen = pressed;
SetButtonState(Button::Trigger, pressed);
if (m_shoot_offscreen != pressed)
{
m_shoot_offscreen = pressed;
SetButtonState(Button::Trigger, pressed);
}
return;
}

Loading…
Cancel
Save