Previous 15994 Revisions Next

r6639 Tuesday 15th December, 2009 at 10:34:32 UTC by Barry Rodewald
[FMTOWNS] Added basic joystick controls.
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r6638r6639
729729{
730730   logerror("PADPORT: read mask %08x\n",mem_mask);
731731   if(ACCESSING_BITS_0_7)
732      return 0x7f;
732      return input_port_read(space->machine,"joy1");;
733733
734734   return 0x00;
735735}
r6638r6639
18181818    PORT_BIT(0x10000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("BREAK")
18191819    PORT_BIT(0x20000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("COPY")
18201820
1821  PORT_START("joy1")
1822    PORT_BIT(0x00000001,IP_ACTIVE_LOW, IPT_JOYSTICK_UP) PORT_PLAYER(1)
1823    PORT_BIT(0x00000002,IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN) PORT_PLAYER(1)
1824    PORT_BIT(0x00000004,IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT) PORT_PLAYER(1)
1825    PORT_BIT(0x00000008,IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1)
1826    PORT_BIT(0x00000010,IP_ACTIVE_LOW, IPT_START) PORT_PLAYER(1)
1827    PORT_BIT(0x00000020,IP_ACTIVE_LOW, IPT_BUTTON1) PORT_PLAYER(1)
1828    PORT_BIT(0x00000040,IP_ACTIVE_LOW, IPT_BUTTON2) PORT_PLAYER(1)
1829    PORT_BIT(0x00000080,IP_ACTIVE_HIGH, IPT_UNUSED) PORT_PLAYER(1)
1830 
18211831INPUT_PORTS_END
18221832
18231833static TIMER_CALLBACK( towns_vblank_end )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team