| Main > Main Forum |
| Rotary Button (Forgotten Worlds) |
| << < (2/3) > >> |
| u_rebelscum:
--- Quote from: MameJunkie on September 08, 2005, 04:28:31 pm ---I came across some rotary buttons that I was thinking of making a CP for games like Forgotten Worlds, Front Line... How do I wire it up or make a circuit so that all I end up is one for going LEFT and one for going RIGHT? --- End quote --- The easiest connection is with a mouse hack, or with any optipac-etc interface. The quadrature output of your rotary is the same that the optical sensor + encoder wheel outputs. This is fine for Forgotten Worlds, Ikari or Heavy Barrel in mame, or any other game that simulates the game's rotary with mame's "dial" type input. :) Games like Front Line, where the original hardware had a 8-direction rotary, however, mame simulates that input with the 8-way joystick type; this means the above connection won't work with these games. :( There are other ways to connect, but I don't know any enough to be sure that it would work like you asked. :-\ Here's a couple: * A software solution is possible too. Just hook the rotary's two outputs to two buttons, and have the software compare the current state with the last state, and translate as you said. This could be done in a driver, in a wrapper, or inside mame. * There has to be IC chips that are designed to do what you want, I just don't know of any. If they exist, you could connect that output to any two button/key inputs (Ipac, keywiz, gwiz, hack gamepad, etc) Anyway, I'd do the easy way, unless I just HAD to play front line. Then I'd look into the hardware fix. |
| MameJunkie:
Thanks rebelscum... Good info. I didn't know they were the same. I have a Mini I-Pac, might try to hook it up to the trackball/spinner connectors. The only thing is, the I-Pac diagram shows 4 pins (+5 volt, Gnd, X1, X2) but the buttons I have only have 3 pins (Gnd, P1, P2). Any clue on how I should try hooking it up? |
| RayB:
--- Quote from: u_rebelscum on September 09, 2005, 02:21:30 pm ---This is fine for Forgotten Worlds, Ikari or Heavy Barrel in mame, or any other game that simulates the game's rotary with mame's "dial" type input. --- End quote --- |
| Kremmit:
He's not saying Forgotten Worlds uses the same controller as Ikari- he's grouping them together because MAME uses the same input scheme for both. Which is one of the things the MAMEdev's stubbornly don't fix, even though it's a total hack, and contrary to the stated spirit of the project. Robin, are you ever going to have a look at fixing Ikari the same way you did for Time Soldiers? ;) |
| Silver:
I used a very simlilar looking rotary encoder (which is what I believe those items on the left are) to hack rotary ability onto a J-stick. The output of the rotarys was described as "2-bit Gray encoded" - which is exactly what you describe (as confirmed by u_rebelscum). They work perfectly with an optipac, which I'm pretty sure uses exactly the same electronics as a minipac, so they should work just fine. |
| Navigation |
| Message Index |
| Next page |
| Previous page |