mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-03 19:35:41 -04:00
NamcoGuncon: Only update trigger for offscreen on change
This commit is contained in:
parent
9af822dc9c
commit
1e7e52718e
@ -69,8 +69,12 @@ void NamcoGunCon::SetButtonState(Button button, bool pressed)
|
|||||||
{
|
{
|
||||||
if (button == Button::ShootOffscreen)
|
if (button == Button::ShootOffscreen)
|
||||||
{
|
{
|
||||||
m_shoot_offscreen = pressed;
|
if (m_shoot_offscreen != pressed)
|
||||||
SetButtonState(Button::Trigger, pressed);
|
{
|
||||||
|
m_shoot_offscreen = pressed;
|
||||||
|
SetButtonState(Button::Trigger, pressed);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user