MAMEWorld >> MAME Artwork X: Other Artwork Projects
View all threads Index   Flat Mode Flat  

wemr97dl
MAME Fan
Reged: 04/25/21
Posts: 218
Send PM
HELP 8way Joystick Animation
02/26/23 11:26 AM


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 )


My Mame Artwork
https://drive.google.com/drive/folders/1OP43Qk_2uCIJ7HLY2maemAmJHtu9kbyV?usp=share_link

Edited by wemr97dl (02/26/23 11:26 AM)







Entire thread
Subject Posted by Posted on
* HELP 8way Joystick Animation wemr97dl 02/26/23 11:26 AM
. * Re: HELP 8way Joystick Animation Nightvoice  03/01/23 10:16 AM
. * Re: HELP 8way Joystick Animation wemr97dl  03/07/23 06:02 AM
. * Re: HELP 8way Joystick Animation wemr97dl  03/04/23 06:44 AM

Extra information Permissions
Moderator:  Mr. Do 
0 registered and 33 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 178