Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: FrizzleFried on March 15, 2019, 08:04:54 AM

Title: Joystick Data
Post by: FrizzleFried on March 15, 2019, 08:04:54 AM
OK... I can make my layouts display PLAYER NUMBERS... as well as CATEGORIES...  and now I want to display CONTROLLER TYPE...

JOYSTICK (2-WAY)
JOYSTICK (4-WAY)
JOYSTICK (8-WAY)
ROTARY
TRACKBALL
etc...

Any easy code to do so? 
Title: Re: Joystick Data
Post by: rand0m on March 15, 2019, 08:57:21 AM
[Controls] column in romlist can be used for this purpose, rest will be same. Similar to how filters are made for [Category] you can use [Controls] as basis. You can use any other column like [Extra] or [Buttons] for that too. If all headers are populated you can use tags rest should be same, in filters a statement like [Tags] contain [control data] can be used.
Title: Re: Joystick Data
Post by: FrizzleFried on March 15, 2019, 10:12:23 AM
Thanks... I actually managed to figure it out.

;)
Title: Re: Joystick Data
Post by: FrizzleFried on March 15, 2019, 01:38:48 PM
How about number of BUTTONS?  I see that my output from MAME includes this info between "EXTRA" and "FAVORITES" but there isn't a mention of it in the attract mode layout manual... is there a way to display button count?  If so,  what's the magic token name?

EDIT: Evidently Info.Buttons works... giving it a try now.

EDIT #2: Unfortunately,   Info.Buttons is NOT working...where Info.Controls did (for joysticks).  I wonder what I am doing wrong... the data IS in the romlist...

Hmmm....

EDIT #3: Nevermind... I found my error and have fixed it...

:)

Title: Re: Joystick Data
Post by: zpaolo11x on March 16, 2019, 04:26:17 AM
as you already discovered Buttons is undocumented but works. In my theme I use both controls and buttons with a custom function that assigns an image to different controls based on this data
Title: Re: Joystick Data
Post by: FrizzleFried on March 16, 2019, 10:29:42 AM
as you already discovered Buttons is undocumented but works. In my theme I use both controls and buttons with a custom function that assigns an image to different controls based on this data

This is exactly what I did...

:)

Title: Re: Joystick Data
Post by: FrizzleFried on March 16, 2019, 10:30:51 AM
Oh,  and unfortunately some are obviously wrong though.  For example,  Galaga 88 is listed as an 8-way game... it's not... 2-way.

There are a few more.  I'll fix them in my romlists as I go through them though... not a huge deal.