mirror of
https://github.com/holub/mame
synced 2025-10-09 01:39:48 +03:00
Stop contradicting me (nw)
This commit is contained in:
parent
0fec47ba92
commit
1ab38a0228
@ -1956,7 +1956,7 @@ void ioport_field::frame_update(ioport_value &result, bool mouse_down)
|
|||||||
curstate = false;
|
curstate = false;
|
||||||
|
|
||||||
// additional logic to restrict digital joysticks
|
// additional logic to restrict digital joysticks
|
||||||
if (curstate && !mouse_down && m_live->joystick != NULL && m_way != 16 && !machine().options().joystick_contradictory())
|
if (curstate && !m_digital_value && !mouse_down && m_live->joystick != NULL && m_way != 16 && !machine().options().joystick_contradictory())
|
||||||
{
|
{
|
||||||
UINT8 mask = (m_way == 4) ? m_live->joystick->current4way() : m_live->joystick->current();
|
UINT8 mask = (m_way == 4) ? m_live->joystick->current4way() : m_live->joystick->current();
|
||||||
if (!(mask & (1 << m_live->joydir)))
|
if (!(mask & (1 << m_live->joydir)))
|
||||||
|
Loading…
Reference in New Issue
Block a user