Main > Main Forum

Bribery for new Mame feature "Shifter Toggle" Help...

<< < (2/7) > >>

daikiki:
Would you be able to change the shifter to a momentary one by mounting a capacitor inline with the switches that the shifter depresses? Just a thought.

tetsujin:

--- Quote from: daikiki on January 23, 2006, 01:47:44 pm ---Would you be able to change the shifter to a momentary one by mounting a capacitor inline with the switches that the shifter depresses? Just a thought.

--- End quote ---

I'm not sure what you mean by this, exactly.  You mean have a cap in series with the switch?  What would that do?  When the switch is closed, the cap charges to saturation.  When the switch is open, the cap doesn't change state.  (Or have I misunderstood?  I switched to Comp Sci. after my first year of Electrical Engineering...)

Plus there's the possibility that a pulse will be issued but (for whatever reason) the computer will miss it.  This is why my suggestion was for the shifter circuit to generate a continuous stream of pulses.  If you shifted the shifter "up" while the computer was off, or the game wasn't running, or whatever, then it'd continue sending the "shifter is up" signal as long as the shifter is up, and as soon as the PC is listening properly it'll get the signal.  (The main problem with that approach is that some software on the PC-side may be attempting to issue interrupts when there's a state change, or keep a history of rising and falling edge events - in which case if the pulses are too fast the PC will waste a significant amount of time processing the events.  This probably works better with a gamepad-type interface rather than a keyboard encoder.)

PetitMorte:

--- Quote from: tetsujin on January 23, 2006, 01:15:56 pm --- Just create a circuit that generates "shift up" signal pulses when the shifter is shifted up, and "shift down" signal pulses when the shifter is shifted down.

--- End quote ---

For a lot of the games, mame toggles between hi and low on one keypress.  So the circuit would want to send a keypress when the switch is pressed, and send the same keypress when the switch is released.

Pole position, and Spy hunter would both use this kind of on=low off=high shifter.



How about this for a solution...  Connect both the NO AND the NC connectors from the switch to the key input.
That way it sends a signal when the switch is pressed, and stops and then sends it again when it is released.
Of course, then you'd have a key that is constantly pressed, and that might cause problems.  In addition, Mame would never "know" what position the shifter is in...

Please let me know why that wouldn't work.

ahofle:
I will see your $100 for the shifter feature, and raise you $200 for fixing the Joust pixel bug and getting Gorf working again.  :P

thebrownshow:
Not to be a total wiseass here, but for that much, you could just take a programming course and fix it yourselves ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version