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: Help getting joystick to work with mame?  (Read 9254 times)

0 Members and 1 Guest are viewing this topic.

Dariusz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 195
  • Last login:November 23, 2018, 02:41:36 pm
  • I want to Build My Own Arcade Controls!!
Help getting joystick to work with mame?
« on: October 02, 2007, 06:41:07 pm »
Hi Gents,

I have a small problem I hope someone can assist me with in regards to controls.

My situation is I cannot get my Joystick to work with MAME0119b. My joystick work well with the FE I am useing (AtomicFE), but when an game get loaded using Mame the joystick does not work at all? :-\

I have tested the joystick without using AtomicFE (ie, using only the command line version of mame0119b) and I get the same result where the joystick does not respond at all - I have the same control set up for player 1 in Atomic FE  like in mame for player 1.

My configuration is:

Have a Xbox 'Arcade Stick' connected to the PC via an 'Super Joy Box 10' adapter (Xbox to usb converter).

I have also the keyboard encoder software 'total game control' being used which I have configured my joystick to using keyboard keys for player 1 controls (Start button on stick = 1 on the keyboard (Player 1 Start), Start button on stick = 5 on the keyboard (Credit 1) etc)

Again, my joystick operates fine on my AtomicFE, but is rended useless when Mame is run.

I run mame games using the normal command like 'mame gameame'

Can anyone assist me in geting my joystick running?

You help is kindly appreciated.

KInd Regards,

Dariusz

ideft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:February 11, 2012, 04:06:09 pm
  • "Mister, I suspect you to be a dope fiend"
Re: Help getting joystick to work with mame?
« Reply #1 on: October 02, 2007, 07:48:16 pm »
Try the command line: mame gamename -joystick

Dariusz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 195
  • Last login:November 23, 2018, 02:41:36 pm
  • I want to Build My Own Arcade Controls!!
Re: Help getting joystick to work with mame?
« Reply #2 on: October 02, 2007, 10:47:45 pm »
Hi ideft

Thanks for the reply. I give it a try tonight, but my issue is that I'm using the keyboard as the control for mame by use of an joy to key converter software. My FE works well with the joystick which uses the same key commands as mame using the joy to key software, but wgen mame is launched, by joy to key software is ignored by mame. is there a way for mame to recognise my joy to ket software like it does with my FE (AtomicFE)?
Thanks,

Dariusz

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: Help getting joystick to work with mame?
« Reply #3 on: October 03, 2007, 02:27:11 pm »
... my issue is that I'm using the keyboard as the control for mame by use of an joy to key converter software. My FE works well with the joystick which uses the same key commands as mame using the joy to key software, but wgen mame is launched, by joy to key software is ignored by mame. is there a way for mame to recognise my joy to ket software like it does with my FE (AtomicFE)?

Mame now uses RawInput for keyboard (and mouse) inputs.  Your joy2key app doesn't emulate a keyboard at a low enough level to register as a rawinput keyboard to windows, and thus to mame.  Your options are many (but none "nice and clean"):

A. Find a RawInput joy2key app.  (Don't know of any.)
B. Use an older mame from before mame went rawinput keyboard.
C. Stop using the joy2key when mame is running (and enable -joystick in mame).
D. Setup your frontend to use true joystick inputs instead of keyboard (if possible; I don't now AtomicFE) and stop using the joy2key app. (If not possible with your FE, change to a FE that can.)
E. Use win98 or winME (they don't suppport rawinput, so mame falls back to directInput).
F. Edit mame's source and disable rawinput (at least for keyboards), forcing mame to fall back to directInput.
G. (Maybe) Try SDLMame.  (Not totally sure, but pretty sure. :P)

Like I said, none are probably what you were looking for. :-\
Robin
Knowledge is Power

ideft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:February 11, 2012, 04:06:09 pm
  • "Mister, I suspect you to be a dope fiend"
Re: Help getting joystick to work with mame?
« Reply #4 on: October 03, 2007, 06:52:38 pm »
does windows recognize your joystick as a game contoller???
 

Dariusz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 195
  • Last login:November 23, 2018, 02:41:36 pm
  • I want to Build My Own Arcade Controls!!
Re: Help getting joystick to work with mame?
« Reply #5 on: October 08, 2007, 06:38:30 pm »
u_rebelscum,

Thanks for the detailed infor. I did not realise mame had changed its input system, and I went off and bought an joytokeyboard software :(

Is there a way to disable the rawinput from an mame command line?

Look like I'll have to play around the -joystick command to see if it works  as windows recognises the controller.

As with Atomic at least the joy to keyboard software works frin with the FE :), but I too not sure if the native -jotsick option is supported.

If the joytokey option (program) now longer work with new mame, how can you program the buttons of an joystick for buttons such as coin, esc, and hot keys (like key combinations)? as I presume the native -joystick option os only for game controls?

BTW with the new mame, it look like the .ini or was it the  cfg file nolonger exits where you has configured the file with 0s and 1s (ie. for the OK screens etc). Has this system been replaced with a new config system in mame which I not aware of?

Thanks again for the details.

Dariusz

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: Help getting joystick to work with mame?
« Reply #6 on: October 08, 2007, 07:28:11 pm »
While in the game press Tab then choose Input General then press Enter at the button you want to change.

Quote
I did not realise mame had changed its input system, and I went off and bought an joytokeyboard software

Joytokey is free http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm
also Xpadder http://xpadder.com/

You don't have to use the newest version. You could always use an older version of mame like 117. http://mamedev.org/oldrel.html

Quote
BTW with the new mame, it look like the .ini or was it the  cfg file nolonger exits where you has configured the file with 0s and 1s (ie. for the OK screens etc). Has this system been replaced with a new config system in mame which I not aware of?

It's disabled. You have to compile your own version. http://forum.arcadecontrols.com/index.php?topic=71845.0
Very easy.
« Last Edit: October 08, 2007, 07:29:58 pm by gonzo90017 »