I'm trying to animate an 8 way joystick for Killer Instinct and having no success at getting it to work, I was trying to use MrDos gorf as an example but have no idea of what to put in for the values for Joystick 1 & 2, this is from Mame for the game, how do I get 0x00000040 P1 up to a correct value in the lay file and how do i figure out the diagonals???
PORT_START("P1") PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 High Attack - Quick") PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 High Attack - Medium") PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("P1 High Attack - Fierce") PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("P1 Low Attack - Quick") PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) PORT_NAME("P1 Low Attack - Medium") PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) PORT_NAME("P1 Low Attack - Fierce") PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_START1 ) PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_SERVICE_NO_TOGGLE( 0x00001000, IP_ACTIVE_LOW ) PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_CUSTOM ) // door PORT_BIT( 0xffff0000, IP_ACTIVE_LOW, IPT_UNUSED )
Edited by wemr97dl (02/26/23 11:26 AM)
|