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
Mask Player Inputs??
03/09/23 06:42 AM Attachment: asteroids_cocktail_Control_Panel.png 658 KB (1 downloads)


So i downloaded the asteroids bezel from @Nightvoice and was Messing around a bit with the Cocktail view, made the CP for the Cocktail in gimp and got the controls working and 2 players setup. the only problem is the inputs for P1 and P2 are the same. Digging a bit and found this for the outputs in MAME doc.

output_latch_device &outlatch(OUTPUT_LATCH(config, "outlatch")); // LS174 at N11
outlatch.bit_handler<0>().set_output("led1").invert(); // 2 PLYR START LAMP
outlatch.bit_handler<1>().set_output("led0").invert(); // 1 PLYR START LAMP
outlatch.bit_handler<2>().set_membank("ram1"); // RAMSEL
outlatch.bit_handler<2>().append_membank("ram2");
outlatch.bit_handler<2>().append(FUNC(asteroid_state::cocktail_inv_w));
outlatch.bit_handler<3>().set(FUNC(asteroid_state::coin_counter_left_w)); // COIN CNTRL
outlatch.bit_handler<4>().set(FUNC(asteroid_state::coin_counter_center_w)); // COIN CNTRC
outlatch.bit_handler<5>().set(FUNC(asteroid_state::coin_counter_right_w)); // COIN CNTRR

The Question is how can I use the cocktail_inv_w to mask the controls for P1 when P2 is playing and vice versa, I believe this is the screen flip for the Cocktail machine.

[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
* Mask Player Inputs?? wemr97dl 03/09/23 06:42 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: 171