summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/nes_ctrl/pachinko.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/bus/nes_ctrl/pachinko.c')
-rw-r--r--src/emu/bus/nes_ctrl/pachinko.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/bus/nes_ctrl/pachinko.c b/src/emu/bus/nes_ctrl/pachinko.c
index 875aa92e771..6790e636dd6 100644
--- a/src/emu/bus/nes_ctrl/pachinko.c
+++ b/src/emu/bus/nes_ctrl/pachinko.c
@@ -20,8 +20,8 @@ static INPUT_PORTS_START( nes_pachinko )
PORT_START("JOYPAD")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("A")
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("B")
- PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SELECT )
- PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START )
+ PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SELECT )
+ PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
@@ -85,7 +85,7 @@ UINT8 nes_pachinko_device::read_exp(offs_t offset)
{
UINT8 ret = 0;
// this controller behaves like a standard P3 joypad, with longer stream of inputs
- if (offset == 0) //$4016
+ if (offset == 0) //$4016
{
ret |= (m_latch & 1) << 1;
m_latch >>= 1;
@@ -101,7 +101,7 @@ void nes_pachinko_device::write(UINT8 data)
{
if (data & 0x01)
return;
-
+
m_latch = m_joypad->read();
m_latch |= ((m_trigger->read() ^ 0xff) & 0xff) << 8;
m_latch |= 0xff0000;