Previous 199869 Revisions Next

r18364 Monday 8th October, 2012 at 22:05:20 UTC by hap
small inputs update
[src/mame/drivers]mcr3.c

trunk/src/mame/drivers/mcr3.c
r18363r18364
181181
182182READ8_MEMBER(mcr3_state::maxrpm_ip2_r)
183183{
184   /* this is a blatant hack, should really do a better implementation */
184185   static const UINT8 shift_bits[5] = { 0x00, 0x05, 0x06, 0x01, 0x02 };
185186   UINT8 start = ioport("MONO.IP0")->read();
186187   UINT8 shift = ioport("SHIFT")->read();
r18363r18364
599600   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)
600601   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4)
601602   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4)
602
603603INPUT_PORTS_END
604604
605605
r18363r18364
688688   PORT_BIT( 0xff, 0x74, IPT_PADDLE ) PORT_MINMAX(0x34,0xb4) PORT_SENSITIVITY(40) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(1)
689689
690690   PORT_START("SHIFT")   /* fake for shifting */
691   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Shift Up")
692   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Shift Down")
693   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 Shift Up")
694   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Shift Down")
695   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN )
691   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP   ) PORT_2WAY PORT_PLAYER(1) PORT_NAME("P1 Shift Up")
692   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_2WAY PORT_PLAYER(1) PORT_NAME("P1 Shift Down")
693   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP   ) PORT_2WAY PORT_PLAYER(2) PORT_NAME("P2 Shift Up")
694   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_2WAY PORT_PLAYER(2) PORT_NAME("P2 Shift Down")
695   PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
696696INPUT_PORTS_END
697697
698698
r18363r18364
704704   PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNUSED )
705705   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_TILT )
706706   PORT_SERVICE( 0x20, IP_ACTIVE_LOW )
707   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE )
707   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 )
708708   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
709709
710710   PORT_START("MONO.IP1")   /* J2 10-13,15-18 */
r18363r18364
880880   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN3 )
881881   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )      /* same as MONO.IN0 */
882882   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START3 )
883   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )      /* same as MONO.IN0 */
883   PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )   /* same as MONO.IN0 */
884884INPUT_PORTS_END
885885
886886
r18363r18364
890890   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
891891   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
892892   PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNUSED )
893   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Gear Shift") PORT_CODE(KEYCODE_ENTER) PORT_TOGGLE
893   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Gear Shift") PORT_TOGGLE
894894   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT )
895895   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 )
896896   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
897897
898898   PORT_START("ssio:IP1")   /* J4 10-13,15-18 */
899   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Oil Slick")
900   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Missiles")
901   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Weapon Truck")
902   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Smoke Screen")
903   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Machine Guns")
899   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Left Button / Oil Slick")
900   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Left Trigger / Missiles")
901   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1  ) PORT_NAME("Center Button / Weapons Van")
902   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Right Button / Smoke Screen")
903   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Right Trigger / Machine Guns")
904904   PORT_BIT( 0x60, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* status from CS deluxe, never read */
905905   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
906906
r18363r18364
970970   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
971971   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
972972   PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNUSED )
973   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Gear Shift") PORT_CODE(KEYCODE_ENTER) PORT_TOGGLE
973   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Gear Shift") PORT_TOGGLE
974974   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT )
975975   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 )
976976   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
977977
978978   PORT_START("ssio:IP1")   /* J4 10-13,15-18 */
979   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Left Button")
980   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Left Trigger")
981   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Center Button")
982   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Right Button")
983   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Right Trigger")
979   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1  ) PORT_NAME("Left Button / 1 Player")
980   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Left Trigger")
981   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Center Button")
982   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2  ) PORT_NAME("Right Button / 2 Player")
983   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Right Trigger")
984984   PORT_BIT( 0x60, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* status from CS deluxe, never read */
985985   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
986986

Previous 199869 Revisions Next


© 1997-2024 The MAME Team