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 can't see USB Encoder / USB Input Device :(  (Read 916 times)

0 Members and 1 Guest are viewing this topic.

BazookaJo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:December 20, 2022, 03:53:30 pm
  • I want to build my own arcade controls!
    • BazookaJo Paper models
MAME can't see USB Encoder / USB Input Device :(
« on: December 01, 2022, 08:07:15 am »
Hi guys - building my own Atari star Wars upright.

Have the GRS yoke, and have 2 Coin Push buttons with microswitches plugged into a zero delay encoder.

PC picks up the encoder as "USB Input Device" but it doesn't seem to appear in any of the controller menus, and I can't seem to map the button presses to any controls.

Anyone know what embarrassingly obvious step I've missed?

Cheers

Joe.
http://www.bazookajo.me.uk/ - home of the Marvin the Martian paper model :)

bollwerk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:November 20, 2023, 08:27:52 pm
  • I want to build my own arcade controls!
Re: MAME can't see USB Encoder / USB Input Device :(
« Reply #1 on: December 05, 2022, 07:15:08 pm »
My thought process for troubleshooting -

1) Run MAME -v in command line - the output will show what input devices it detects.
2) Find which one is likely the yoke
3) hard code the yoke to MOUSECODE_1 or something similar

More info - https://docs.mamedev.org/advanced/devicemap.html

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Online Online
  • Posts: 19399
  • Last login:Today at 05:29:33 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: MAME can't see USB Encoder / USB Input Device :(
« Reply #2 on: December 05, 2022, 11:35:28 pm »
if the yoke shows up as a joystick you need to add the -joystick command line .   If it's a mouse, you guessed it.   -mouse.   


BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 25, 2024, 08:10:48 pm
  • ...
Re: MAME can't see USB Encoder / USB Input Device :(
« Reply #3 on: December 06, 2022, 08:38:40 am »
These options can be seen and set in the mame.ini file.

BazookaJo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:December 20, 2022, 03:53:30 pm
  • I want to build my own arcade controls!
    • BazookaJo Paper models
Re: MAME can't see USB Encoder / USB Input Device :(
« Reply #4 on: December 14, 2022, 01:30:23 pm »
Cheers guys

Okay - so after a little diddling I can now assign the coin buttons to Coin 1 and Coin 2 via
General Settings -> Input Assignments -> Other Controls   :applaud:

However, the assignments look greyed out and Star Wars does not pick up the buttons  :cry:


any ideas?
http://www.bazookajo.me.uk/ - home of the Marvin the Martian paper model :)

BazookaJo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:December 20, 2022, 03:53:30 pm
  • I want to build my own arcade controls!
    • BazookaJo Paper models
Re: MAME can't see USB Encoder / USB Input Device :(
« Reply #5 on: December 14, 2022, 01:51:49 pm »
Ignore that - didn't have the main controller attached so think it was using the buttons as standard joystick inputs which were overriding the coin inputs.  :o
http://www.bazookajo.me.uk/ - home of the Marvin the Martian paper model :)