Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: Nvts on June 12, 2008, 09:07:01 am

Title: Key enc works in Windows, not mame?
Post by: Nvts on June 12, 2008, 09:07:01 am

First time messing with this type of stuff, and I have something I don’t quite get.

I picked up a box full of goodies, and threw together a quick shoebox test console. I set up a Hagstrom KE72-t with an IOX36 breakout boards, forgot  what joystick I tried out, and a couple buttons.  It seems like everything was working out, and since it was late, I didn’t try to reprogram the KE72, and opened notepad to see what keys I was getting.  It seemed to be working fine in notepad, spewing out keys as I moved and pushed things, just like I would expect.

When I went into mameui, and mapped the input to the keys that came through the encoder, it didn’t work.  Well, it did, but so very rarely that it was unusable.  If I pushed a button, it would actually fire off every 5 or 10 pushes.  Same with the joystick.  It was getting way too late, so I had to pack up and get to bed.

Did I miss something in the configuration (other than programming the encoder to give the data that I actually want) that would cause this?
Title: Re: Key enc works in Windows, not mame?
Post by: u_rebelscum on June 12, 2008, 07:31:18 pm
Never got to testing that encoder, but a couple possibilities pop to mind:

- ke72 not rawinput compatible (doubtful, but ???)
- ke72 sends key repeats (down, up, down, up), and mame polls when encoder is ending up (mame does current state polling, not by event.)  If this, can you disable keyrepeat on the ke72, if enabled?  (not likely as you're only hitting 1 out of 5, not 1/2 the time, maybe?)
- was this only during remap?  was the game paused?  did you only try quick presses, or did you also try holding the button for ~ 1/2 a second?


Mostly guesses, probably not much help, sorry.
Title: Re: Key enc works in Windows, not mame?
Post by: Nvts on June 13, 2008, 09:33:13 am
Turns out that once I went through and programmed it to the values I wanted, it worked just fine.  If I had to guess, the pass through keyboard was conflicting with the controls.  Donno.  Works great now though. :)  I just ran out of time the night before, after staying up a couple hours later than I should :)
Title: Re: Key enc works in Windows, not mame?
Post by: LPZ on June 13, 2008, 11:33:41 am
I had similar trouble like that with my ke72t.  Just run the ke72load.exe program again and you should be ok.  I found out that when I would unplug my encoder, when the computer was on, I would have to reload.  Other than that, I am very happy with the 72.