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 Mapdevice Problems  (Read 1835 times)

0 Members and 1 Guest are viewing this topic.

Cyberonix

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:March 27, 2017, 10:27:27 pm
  • I want to build my own arcade controls!
MAME Mapdevice Problems
« on: March 27, 2017, 10:08:43 pm »
I'm having issues mapping my input devices in MAME and was hoping someone might be able to tell me why. Below is the device mapping section I have in my ctrlr file. Currently I have only two of the four joysticks connected. For whatever reason they won't map correctly. Player 1 is always connecting to the second joystick and Player 2 is always connecting to the first joystick (these are UltraStik360s if that makes a difference). Even if I swap the JOYCODE_1 AND JOYCODE_2 they still keep the same mapping as described above. I should say the trackball section below seems to work perfectly. I can swap them back and forth and the control panel reacts correctly. I have not yet checked the lightguns. Below the mapping section is the output from the events tab of each joystick in the device manager. Does anyone have any suggestions of why it might not be working? 

<!-- Joystick Player 1 -->
<mapdevice device="PID_0501&amp;MI_00" controller="JOYCODE_1" />

<!-- Joystick Player 2 -->
<mapdevice device="PID_0502&amp;MI_00" controller="JOYCODE_2" />

<!-- Joystick Player 3 -->
<mapdevice device="PID_0503&amp;MI_00" controller="JOYCODE_3" />

<!-- Joystick Player 4 -->
<mapdevice device="PID_0504&amp;MI_00" controller="JOYCODE_4" />

<!-- Trackball / Spinner Player 1 -->
<mapdevice device="PID_0301&amp;MI_00" controller="MOUSECODE_1" />

<!-- Trackball / Spinner Player 2 -->
<mapdevice device="PID_0301&amp;MI_01" controller="MOUSECODE_2" />

<!-- Lightgun Player 1 -->
<mapdevice device="PID_1601&amp;MI_01" controller="GUNCODE_1" />
<mapdevice device="ATRAK Device #1" controller="JOYCODE_1" />

<!-- Lightgun Player 2 -->
<mapdevice device="PID_1602&amp;MI_01" controller="GUNCODE_2" />
<mapdevice device="ATRAK Device #2" controller="JOYCODE_2" />


Device Manager: Events tab info:

Device HID\VID_D209&PID_0501&MI_00\9&396a36a4&0&0000 was configured.

Driver Name: input.inf
Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}
Driver Date: 06/21/2006
Driver Version: 10.0.10586.420
Driver Provider: Microsoft
Driver Section: HID_Raw_Inst.NT
Driver Rank: 0xFF1003
Matching Device Id: HID_DEVICE_SYSTEM_GAME
Outranked Drivers: input.inf:HID_DEVICE:00FF1005
Device Updated: false
Parent Device: USB\VID_D209&PID_0501&MI_00\8&513d8c8&0&0000


Device HID\VID_D209&PID_0502&MI_00\9&2cb254b3&0&0000 was configured.

Driver Name: input.inf
Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}
Driver Date: 06/21/2006
Driver Version: 10.0.10586.420
Driver Provider: Microsoft
Driver Section: HID_Raw_Inst.NT
Driver Rank: 0xFF1003
Matching Device Id: HID_DEVICE_SYSTEM_GAME
Outranked Drivers: input.inf:HID_DEVICE:00FF1005
Device Updated: false
Parent Device: USB\VID_D209&PID_0502&MI_00\8&1869dcd2&0&0000