From b47fa605713d1b83a4bae28ffc7a10d871de04dc Mon Sep 17 00:00:00 2001 From: MASH Date: Sat, 14 Mar 2020 02:49:40 +0100 Subject: [PATCH] Added Star Wars controller to Turbo Su Added Star Wars flight yoke controller to Turbo Sub. This fixed the inverted input since MAME 0.192. See http://www.turbosub.com/turbosubmain.html "Most of the cabinets that have surfaced have been converted from Star Wars cabinets, this makes sense considering the game utilizes the same flight yoke". See also MAMETesters bug #06913 --- src/mame/drivers/esripsys.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mame/drivers/esripsys.cpp b/src/mame/drivers/esripsys.cpp index 6c6b0885775..e5609ee93c1 100644 --- a/src/mame/drivers/esripsys.cpp +++ b/src/mame/drivers/esripsys.cpp @@ -284,9 +284,9 @@ READ8_MEMBER(esripsys_state::g_iobus_r) case 0x10: return ioport("IO_1")->read(); case 0x11: - return ioport("JOYSTICK_X")->read(); + return ioport("STICKX")->read(); case 0x12: - return ioport("JOYSTICK_Y")->read(); + return ioport("STICKY")->read(); case 0x16: return m_io_firq_status; case 0x18: @@ -453,11 +453,11 @@ static INPUT_PORTS_START( turbosub ) PORT_START("IO_2") PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) - PORT_START("JOYSTICK_X") - PORT_BIT( 0xff, 0x00, IPT_AD_STICK_X ) PORT_MINMAX(0xff, 0x00) PORT_SENSITIVITY(25) PORT_KEYDELTA(200) + PORT_START("STICKX") + PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) - PORT_START("JOYSTICK_Y") - PORT_BIT( 0xff, 0x00, IPT_AD_STICK_Y ) PORT_MINMAX(0xff, 0x00) PORT_SENSITIVITY(25) PORT_KEYDELTA(200) + PORT_START("STICKY") + PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(70) PORT_KEYDELTA(30) INPUT_PORTS_END