Author Topic: fe.game info and number of buttons?  (Read 507 times)

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 305
    • View Profile
fe.game info and number of buttons?
« on: March 23, 2018, 05:31:45 PM »
Does fe.game_info( id ) have an id for number of buttons?
I don't see it here.

https://github.com/mickelson/attract/blob/master/Layouts.md#game_info

I have it setup in my romlist for mame though.

I want to make a plugin for the RPI that will light up LED's hooked up to the GPIO's and placed in the control panel buttons to tell the player which ones to use for each game.

But i'm not familiar with plugins scripting and didn't want to beat my head against the wall if that particular id isn't recognized.



progets

  • Hero Member
  • *****
  • Posts: 633
    • View Profile
Re: fe.game info and number of buttons?
« Reply #1 on: March 23, 2018, 10:24:23 PM »
Info.Buttons

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 305
    • View Profile
Re: fe.game info and number of buttons?
« Reply #2 on: March 24, 2018, 05:36:24 AM »
:)

I was going to guess that but since I don't quite know what i'm doing I wouldn't know if I was doing it wrong or if it just didn't work. :)

Thanks.

zpaolo11x

  • Sr. Member
  • ****
  • Posts: 139
    • View Profile
Re: fe.game info and number of buttons?
« Reply #3 on: June 19, 2018, 02:17:33 AM »
Info.Buttons

Is Info.Buttons available on all versions of Mame? I'm running AM with Mame 0.185 and Info.Buttons doesn't return anything...

keilmillerjr

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
Re: fe.game info and number of buttons?
« Reply #4 on: June 19, 2018, 07:22:34 AM »
Info.Buttons

Is Info.Buttons available on all versions of Mame? I'm running AM with Mame 0.185 and Info.Buttons doesn't return anything...

That’s because I made a pull request to fix the issue months ago on GitHub and no accept. We need to get on top of accepting these requests.

I can compile for Mac with the fix, and some one compiled windows for me. I forgot who, sorry. It was a conversation with help on discus channel. If anyone needs it let me know.
« Last Edit: June 19, 2018, 07:29:59 AM by keilmillerjr »

zpaolo11x

  • Sr. Member
  • ****
  • Posts: 139
    • View Profile
Re: fe.game info and number of buttons?
« Reply #5 on: June 19, 2018, 11:21:42 PM »
I can compile for Mac with the fix, and some one compiled windows for me. I forgot who, sorry. It was a conversation with help on discus channel. If anyone needs it let me know.

I use AM on a Mac so if you can share the compiled Mac version it would be great. Maybe if someone has the windows build he can share it too...