mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
taitotz: add analog controls (nw)
This commit is contained in:
parent
ec4cef8768
commit
83e0df6cca
@ -2407,6 +2407,15 @@ static INPUT_PORTS_START( taitotz )
|
||||
PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_BUTTON4 ) // View 2
|
||||
PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_BUTTON1 ) // Select 1
|
||||
PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_BUTTON2 ) // Select 2
|
||||
|
||||
PORT_START("ANALOG1")
|
||||
PORT_START("ANALOG2")
|
||||
PORT_START("ANALOG3")
|
||||
PORT_START("ANALOG4")
|
||||
PORT_START("ANALOG5")
|
||||
PORT_START("ANALOG6")
|
||||
PORT_START("ANALOG7")
|
||||
PORT_START("ANALOG8")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( landhigh )
|
||||
@ -2462,6 +2471,10 @@ static INPUT_PORTS_START( landhigh )
|
||||
|
||||
PORT_START("ANALOG5")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL3 ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5)
|
||||
|
||||
PORT_START("ANALOG6")
|
||||
PORT_START("ANALOG7")
|
||||
PORT_START("ANALOG8")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( batlgr2 )
|
||||
@ -2511,6 +2524,12 @@ static INPUT_PORTS_START( batlgr2 )
|
||||
|
||||
PORT_START("ANALOG3") // Brake Pedal
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5)
|
||||
|
||||
PORT_START("ANALOG4")
|
||||
PORT_START("ANALOG5")
|
||||
PORT_START("ANALOG6")
|
||||
PORT_START("ANALOG7")
|
||||
PORT_START("ANALOG8")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( pwrshovl )
|
||||
@ -2624,6 +2643,12 @@ static INPUT_PORTS_START( styphp )
|
||||
|
||||
PORT_START("ANALOG3") // Brake Pedal
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5)
|
||||
|
||||
PORT_START("ANALOG4")
|
||||
PORT_START("ANALOG5")
|
||||
PORT_START("ANALOG6")
|
||||
PORT_START("ANALOG7")
|
||||
PORT_START("ANALOG8")
|
||||
INPUT_PORTS_END
|
||||
|
||||
void taitotz_state::machine_reset()
|
||||
@ -2672,6 +2697,14 @@ static MACHINE_CONFIG_START( taitotz, taitotz_state )
|
||||
MCFG_TMP95C063_PORTB_READ(IOPORT("INPUTS2"))
|
||||
MCFG_TMP95C063_PORTD_READ(IOPORT("INPUTS3"))
|
||||
MCFG_TMP95C063_PORTE_READ(IOPORT("INPUTS4"))
|
||||
MCFG_TMP95C063_AN0_READ(IOPORT("ANALOG1"))
|
||||
MCFG_TMP95C063_AN1_READ(IOPORT("ANALOG2"))
|
||||
MCFG_TMP95C063_AN2_READ(IOPORT("ANALOG3"))
|
||||
MCFG_TMP95C063_AN3_READ(IOPORT("ANALOG4"))
|
||||
MCFG_TMP95C063_AN4_READ(IOPORT("ANALOG5"))
|
||||
MCFG_TMP95C063_AN5_READ(IOPORT("ANALOG6"))
|
||||
MCFG_TMP95C063_AN6_READ(IOPORT("ANALOG7"))
|
||||
MCFG_TMP95C063_AN7_READ(IOPORT("ANALOG8"))
|
||||
|
||||
MCFG_CPU_PROGRAM_MAP(tlcs900h_mem)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", taitotz_state, taitotz_vbi)
|
||||
|
Loading…
Reference in New Issue
Block a user