MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4740
Loc: California
Send PM


INPUTTAG and Bus Devices
#358094 - 08/28/16 07:52 PM


So I noticed none of the buttons (clickable; move up/down when you press them) in this artwork file (mslug2) worked anymore. I look, and the neogeo driver was updated some time back.

I look some more, and I see that the controllers for neogeo are now bus devices.

So I try the code I thought "should have worked," from looking at src\devices\bus\neogeo_ctrl\joystick.cpp

Nope... still doesn't work.

I try another driver that has a joystick setup as a bus device, a2600, and same results... I can't get it to work.

Can someone throw me a bone, and let me know what I'm missing here?

Current LAY file code below.
Player1/2 Buttons don't work... start buttons do.


<!-- Player 1 Buttons -->
<cpanel element="red_button" inputtag="JOY1" inputmask="0x10">
<bounds x="956" y="4486" width="225" height="225" />
</cpanel>
<cpanel element="yellow_button" inputtag="JOY1" inputmask="0x20">
<bounds x="1185" y="4354" width="225" height="225" />
</cpanel>
<cpanel element="green_button" inputtag="JOY1" inputmask="0x40">
<bounds x="1438" y="4274" width="225" height="225" />
</cpanel>
<cpanel element="blue_button" inputtag="JOY1" inputmask="0x80">
<bounds x="1706" y="4272" width="225" height="225" />
</cpanel>
<!-- Player 2 Buttons -->
<cpanel element="red_button" inputtag="JOY2" inputmask="0x10">
<bounds x="2877" y="4486" width="225" height="225" />
</cpanel>
<cpanel element="yellow_button" inputtag="JOY2" inputmask="0x20">
<bounds x="3105" y="4354" width="225" height="225" />
</cpanel>
<cpanel element="green_button" inputtag="JOY2" inputmask="0x40">
<bounds x="3358" y="4274" width="225" height="225" />
</cpanel>
<cpanel element="blue_button" inputtag="JOY2" inputmask="0x80">
<bounds x="3626" y="4272" width="225" height="225" />
</cpanel>
<!-- Start Buttons -->
<cpanel element="white_button" inputtag="SYSTEM" inputmask="0x100">
<bounds x="150" y="3669" width="225" height="225" />
</cpanel>
<cpanel element="white_button" inputtag="SYSTEM" inputmask="0x200">
<bounds x="1674" y="3669" width="225" height="225" />
</cpanel>
<cpanel element="white_button" inputtag="SYSTEM" inputmask="0x400">
<bounds x="2120" y="3669" width="225" height="225" />
</cpanel>




RELAX and just have fun. Remember, it's all about the games.




AJR Hacker
MAME Fan
Reged: 01/31/16
Posts: 128
Send PM


Re: INPUTTAG and Bus Devices new [Re: Mr. Do]
#358152 - 08/31/16 12:43 PM


Because Neo Geo controllers are now bus devices, the input tags also need to be changed to edge:joy:JOY1 and edge:joy:JOY2. These tags appear in the -listxml output.



Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4740
Loc: California
Send PM


Re: INPUTTAG and Bus Devices new [Re: AJR Hacker]
#358154 - 08/31/16 02:11 PM


> Because Neo Geo controllers are now bus devices, the input tags also need to be
> changed to edge:joy:JOY1 and edge:joy:JOY2. These tags appear in the -listxml output.


Ah... knew it would be something simple. I had simply changed them to JOY1 and JOY2.

That will help me with other thing, too.

Thank you!!! :cheers5:




RELAX and just have fun. Remember, it's all about the games.



Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  redk9258, URherenow, Tafoid 
0 registered and 17 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1295