Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: BazookaJo on December 01, 2022, 08:07:15 am

Title: MAME can't see USB Encoder / USB Input Device :(
Post by: BazookaJo 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.
Title: Re: MAME can't see USB Encoder / USB Input Device :(
Post by: bollwerk 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
Title: Re: MAME can't see USB Encoder / USB Input Device :(
Post by: Howard_Casto 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.   

Title: Re: MAME can't see USB Encoder / USB Input Device :(
Post by: BadMouth on December 06, 2022, 08:38:40 am
These options can be seen and set in the mame.ini file.
Title: Re: MAME can't see USB Encoder / USB Input Device :(
Post by: BazookaJo 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:
(https://1drv.ms/u/s!AmVOhU0LRIJb1hEM8Jg4shqhAk8k?e=IowZ3V)
(http://input.png)
any ideas?
Title: Re: MAME can't see USB Encoder / USB Input Device :(
Post by: BazookaJo 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