mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-09-17 08:02:41 +00:00
NamcoGuncon: Only update trigger for offscreen on change
This commit is contained in:
parent
9af822dc9c
commit
1e7e52718e
|
@ -68,9 +68,13 @@ bool NamcoGunCon::GetButtonState(s32 button_code) const
|
||||||
void NamcoGunCon::SetButtonState(Button button, bool pressed)
|
void NamcoGunCon::SetButtonState(Button button, bool pressed)
|
||||||
{
|
{
|
||||||
if (button == Button::ShootOffscreen)
|
if (button == Button::ShootOffscreen)
|
||||||
|
{
|
||||||
|
if (m_shoot_offscreen != pressed)
|
||||||
{
|
{
|
||||||
m_shoot_offscreen = pressed;
|
m_shoot_offscreen = pressed;
|
||||||
SetButtonState(Button::Trigger, pressed);
|
SetButtonState(Button::Trigger, pressed);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue