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
This commit is contained in:
MASH 2020-03-14 02:49:40 +01:00 committed by GitHub
parent 854a56a1df
commit b47fa60571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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