mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 18:45:46 -04:00
NamcoGuncon: Only update trigger for offscreen on change
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user