Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Mame controller button key  (Read 1130 times)

0 Members and 1 Guest are viewing this topic.

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Mame controller button key
« on: November 06, 2008, 11:51:24 pm »
Hello everyone,
   Is there a chart somewhere that tells me what each button is?  I'm working on configuring my MAME cfg file and I'm not entirely sure what each key is supposed to be.  For instance it took me a while to figure out that the ] key was KEYCODE_CLOSEBRACE.   I could figure all of them out given the time, but I just thought it would be helpful to have a chart...

Is there one somewhere I missed?   I did search but didnt see it.

Thanks

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Mame controller button key
« Reply #1 on: November 07, 2008, 12:45:46 pm »
You can look it up in the source, but it's not in a nice chart.  MameDev and MAWS has individual source files online.

src/emu/inpttype.h: Includes, emm, call it a "list" of mame's input types and what the default maps are, not including OS specific remapped defaults.

src/emu/input.h:  Includes a "lists" of input names.  Probably the best one for you starts around 340, and keyboard ends at line 453.

src/osd/windows/input.c: Includes a different "list" of input names, around 284 to 413.  Might be easier to read, but includes key specific to windows.
Robin
Knowledge is Power