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

wemr97dl
MAME Fan
Reged: 04/25/21
Posts: 218
Send PM
The Legend of Cage
05/20/24 09:32 AM Attachment: The Legend of Kage [lkage] - .jpg 334 KB (1 downloads)


The Legend of Kage
Had to build the Control Panel from scratch using the pic shown. I did borrow the grass pattern from the bezel done by Mr.Retrolust from Mr.Do's.

Layfile note:
the Mame artwork system reads inputs i/o in groups of 4
In the taito/lkage.cpp the Joystick imports are spread across the first and second groups in binary it would be 1111 1111 because its active low, active High would be all zero's.

PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )

Normaly I have been using a script mostly just to move the inputs into a group of 4
to read the joystick inputs, but you don't have to using the input mask.

inputmask="0x3c"





if you convert the 4 bits in each to hexidecimal
you need the 3 and fourth bit of the first set 0011=3
the first and second bit in the second set 1100 = c
most of the time your using a mask of f=1111 all four bits.

hope that helps someone its a lot easier than writing the script.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment


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







Entire thread
Subject Posted by Posted on
* The Legend of Cage wemr97dl 05/20/24 09:32 AM
. * Re: The Legend of Cage mhoes  05/20/24 02:06 PM
. * Re: The Legend of Cage wemr97dl  05/20/24 08:40 PM

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