Main > Main Forum
Switchable controls idea
PL1:
--- Quote from: BadMouth on January 07, 2013, 10:55:14 am ---What can a keyboard encoder do that a gamepad encoder can't? And vice-versa?
--- End quote ---
On some emulators like Visual Pinball, you can't edit some of the control keystrokes, including esc for exit. With a gamepad encoder, you to need to use Xpadder or Joy2Key to get those keystrokes. (Potentially problematic when you use a portable controller like the one in my sig on different systems.)
Also with gamepad encoders, you might need DrVenture's program to keep a particular encoder ID tied to a particular player position when unplugging and re-plugging -- never an issue with keyboard encoders.
--- Quote from: DracoDan on January 07, 2013, 10:44:58 am ---First potential problem:
When button 1 is pressed, SW1 of encoder A is pulled low, does this mean that SW1 of encoder B would drain (be pulled low) to SW1/ground (since the button being pressed means they're now connected) of encoder A and detect a key press? My guess is yes... If so, is there an easy way to avoid this?
--- End quote ---
Ground is ground so both inputs will pulled low. No easy way to avoid this.
--- Quote from: DracoDan on January 07, 2013, 10:44:58 am ---I fear that connecting the positive terminals of both encoders together would cause unpredictable and erratic behavior.
--- End quote ---
No problems from what I've seen.
I've tied inputs together to give both upper flippers and Magnasave from one button press.
--- Quote from: DracoDan on January 07, 2013, 10:44:58 am ---My first idea was to use something like this 24 pole double throw relay to switch all the buttons at once
--- End quote ---
Why not use an encoder that has both functions?
With the KADE, you can program your choice of 20 primary inputs (keyboard or gamepad functions) and 20 shifted inputs. (primary input + HWB Hardware Button)
The only downside is that I just checked the KADE HID joystick programmable firmware and there are 13 buttons, D-pad, and L/R analog sticks available, but it is just for one HID device, so you would need two KADEs for two players. (May also require DrVenture's program mentioned above.)
Connect HWB to a rocker switch, toggle switch, sliding switch, or a latching pushbutton to switch from primary inputs to shifted inputs.
The other option is to use software conversion like BadMouth suggests.
Scott
DracoDan:
--- Quote from: PL1 on January 07, 2013, 01:52:05 pm ---<snip>
--- Quote from: DracoDan on January 07, 2013, 10:44:58 am ---First potential problem:
When button 1 is pressed, SW1 of encoder A is pulled low, does this mean that SW1 of encoder B would drain (be pulled low) to SW1/ground (since the button being pressed means they're now connected) of encoder A and detect a key press? My guess is yes... If so, is there an easy way to avoid this?
--- End quote ---
Ground is ground so both inputs will pulled low. No easy way to avoid this.
--- Quote from: DracoDan on January 07, 2013, 10:44:58 am ---I fear that connecting the positive terminals of both encoders together would cause unpredictable and erratic behavior.
--- End quote ---
No problems from what I've seen.
I've tied inputs together to give both upper flippers and Magnasave from one button press.
--- Quote from: DracoDan on January 07, 2013, 10:44:58 am ---My first idea was to use something like this 24 pole double throw relay to switch all the buttons at once
--- End quote ---
Why not use an encoder that has both functions?
With the KADE, you can program your choice of 20 primary inputs (keyboard or gamepad functions) and 20 shifted inputs. (primary input + HWB Hardware Button)
The only downside is that I just checked the KADE HID joystick programmable firmware and there are 13 buttons, D-pad, and L/R analog sticks available, but it is just for one HID device, so you would need two KADEs for two players. (May also require DrVenture's program mentioned above.)
Connect HWB to a rocker switch, toggle switch, sliding switch, or a latching pushbutton to switch from primary inputs to shifted inputs.
The other option is to use software conversion like BadMouth suggests.
Scott
--- End quote ---
Thanks for the suggestions, seems like the problem is pretty much exactly what I feared.
After thinking about it, I'm probably going to go with a 24PDT switch that I can hide under my CP. that will switch all inputs for both players or two 12PDT to allow each player to switch independently. I my also give Xpadder a shot, I hadn't heard of it before.
I love the idea of using the KADE, I had never heard of it so I looked it up and did some reading. Looks like it's a kickstarter project that is mostly sold out; unless I'm missing something it doesn't look like they've reached general availability yet. The other problem is that I've already invested in both a mini-pac and the ZD encoder boards.
My biggest hindrance on completing this entire project is that I keep going back and redoing various parts. I have already made the decision that I will not again significantly change my design, since every time I do I seem to find as many new limitations as my change aimed to relieve. Between that and the fact that I'm a perfectionist, I am already afraid that this will never get finished...
Drnick:
See the following for my fix on the hyperspin joystick issue that I think you are referring. I should point out that Joystick control works fine with the exception of exiting a menu. and this is only an issue if you are not using admin buttons and so want to use 2 keys to exit.
OK firstly you want a copy of xpadder 5.3 which was the last of the freeware versions of xpadder. You should be able to find it at download.hr
Run xpadder and create a joystick setup which I imagine will be much like mine, 1 joystick and 8 buttons. I only set mine up for the player 1 side, not much point in setting up on both. Save the Joystick setup and it will automatically load that when it detects the controller. (Which should be always as unless its a fight stick its not going to be removed).
You then right hand click on whichever button you have assigned as your P1 coin button (in my instance Button8) you need to change the option for set selector to Selects set 2 and choose the option for when held (you will get a little blue bar at the bottom of the button that says 2 with an arrow next to it), If you press the arcade button selected then you will see it changes to a 1 and that the selected set in bottom right will change to 2.
Choose set 2 (bottom right) and click on whichever button you have assigned as your P1 start button (in my instance Button7) and set this to esc.
You should now find that when holding down P1 credit and then Pressing P1 start sends an esc command to exit Menu/Hyperspin.
I can confirm in my testing with Mame that the credit button works as normal and it still works for exit with both credit buttons pressed together. Please note I have only tested that this works with Mame, I have not tested with any other emulators. I am unsure if it will work in conjunction with other emulators, but any emulator that uses Joystick commands should be fine.
I think they should remove the options for using more then 1 key for exit in the joystick function of hyperhq
DracoDan:
--- Quote from: brad808 on January 07, 2013, 01:40:31 pm ---
--- Quote from: BadMouth on January 07, 2013, 01:13:52 pm ---
I'm sure there are a ton of Hyperspin users using only gampads.
--- End quote ---
I do it on one of my cabinets. Works the exact same as my other cabinet that uses an ipac. No other programs or modifications needed.
Sent from my Galaxy Nexus
--- End quote ---
Good to know, I guess I'll try this first and go back and redo things if I have any issues. Luckily my controls can be easily removed in case I want to redo the wiring.
Thanks again for all the advice! I'll try and get a project thread together soon, I have probably 50 pictures of the build so far.
DracoDan:
--- Quote from: Drnick on January 07, 2013, 03:36:47 pm ---See the following for my fix on the hyperspin joystick issue that I think you are referring. I should point out that Joystick control works fine with the exception of exiting a menu. and this is only an issue if you are not using admin buttons and so want to use 2 keys to exit.
OK firstly you want a copy of xpadder 5.3 which was the last of the freeware versions of xpadder. You should be able to find it at download.hr
Run xpadder and create a joystick setup which I imagine will be much like mine, 1 joystick and 8 buttons. I only set mine up for the player 1 side, not much point in setting up on both. Save the Joystick setup and it will automatically load that when it detects the controller. (Which should be always as unless its a fight stick its not going to be removed).
You then right hand click on whichever button you have assigned as your P1 coin button (in my instance Button8) you need to change the option for set selector to Selects set 2 and choose the option for when held (you will get a little blue bar at the bottom of the button that says 2 with an arrow next to it), If you press the arcade button selected then you will see it changes to a 1 and that the selected set in bottom right will change to 2.
Choose set 2 (bottom right) and click on whichever button you have assigned as your P1 start button (in my instance Button7) and set this to esc.
You should now find that when holding down P1 credit and then Pressing P1 start sends an esc command to exit Menu/Hyperspin.
I can confirm in my testing with Mame that the credit button works as normal and it still works for exit with both credit buttons pressed together. Please note I have only tested that this works with Mame, I have not tested with any other emulators. I am unsure if it will work in conjunction with other emulators, but any emulator that uses Joystick commands should be fine.
I think they should remove the options for using more then 1 key for exit in the joystick function of hyperhq
--- End quote ---
Great! Thanks for the info and details for configuring Xpadder.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version