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

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 307
    • 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • 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: 307
    • 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

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • 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.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
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...