Author Topic: Joystick Data  (Read 4682 times)

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 245
    • View Profile
    • Idaho Garagecade
Joystick Data
« 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? 
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

rand0m

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: Joystick Data
« Reply #1 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.

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 245
    • View Profile
    • Idaho Garagecade
Re: Joystick Data
« Reply #2 on: March 15, 2019, 10:12:23 AM »
Thanks... I actually managed to figure it out.

;)
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 245
    • View Profile
    • Idaho Garagecade
Re: Joystick Data
« Reply #3 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...

:)

« Last Edit: March 15, 2019, 01:55:08 PM by FrizzleFried »
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • My deviantart page
Re: Joystick Data
« Reply #4 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

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 245
    • View Profile
    • Idaho Garagecade
Re: Joystick Data
« Reply #5 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...

:)

Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 245
    • View Profile
    • Idaho Garagecade
Re: Joystick Data
« Reply #6 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.

Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)