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
Re: Sarge with working sticks
05/24/23 03:36 AM


Thanks took a bit of investigating

Just to Explain, first I looked at battlezone as an example, but both player one and two joystickcks are part
of the same Binary (active low) word

AT REST(CENTER) So the three values you would use for the "LH_Joystick_u.png" image
has to account for the other joystick position.
LH Joystick UP three values would be.

JRD JRU JLD JLU
1 1 1 1
1 1 1 0 =hexidecimal "e" LH Joystick UP
0 1 1 0 =hexidecimal "6" LH Joystick UP, RH Joystick Down
1 0 1 0 =hexidecimal "a" LH_Joystick UP, RH Hoystick UP

Don't know if it was this or the crazy 0xc0 value fro button 2??
Hope this helps


PORT_START("MONO.IP1") /* J2 10-13,15-18 */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_2WAY PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_2WAY PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_2WAY PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_2WAY PORT_PLAYER(1)
PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)























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







Entire thread
Subject Posted by Posted on
* Sarge with working sticks wemr97dl 05/23/23 10:43 AM
. * Re: Sarge with working sticks Nightvoice  05/23/23 11:17 PM
. * Re: Sarge with working sticks wemr97dl  05/24/23 03:36 AM

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