How to mix-and-match inputs from two game controllers into one “virtual” controller? - SmarterGamer most recent 30 from http://smartergamer.com 2010-07-30T04:17:03Z http://smartergamer.com/feeds/question/161 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://smartergamer.com/questions/161/how-to-mix-and-match-inputs-from-two-game-controllers-into-one-virtual-controll How to mix-and-match inputs from two game controllers into one “virtual” controller? peSHIr 2009-10-06T09:58:30Z 2010-07-19T15:22:17Z <p>On stackoverflow I've asked this question before, hoping to get information on existing software/drivers that would enable me to do this and/or pointers I might need to be able to write the needed software myself. I didn't really get the canned reply I was hoping for, so I'm trying again on this StackExchange site, hoping the gamer crowd has already encountered this situation and <em>can</em> point me in the right direction.</p> <p>In a nutshell I am looking for a software solution for the following situation (<a href="http://stackoverflow.com/questions/1392429/how-to-mix-and-match-inputs-from-two-game-controllers-into-one-virtual-controll" rel="nofollow">see stackoverflow for more information</a>):</p> <ul> <li>OS: Windows XP/Vista/7</li> <li>Software with legacy joystick control, which only allows one joystick to be used</li> <li>Want to attach two joysticks and use a mix of analog stick(s) and/or buttons from both to control the legacy software</li> <li>Would prefer solution that uses existing "man-in-the-middle" software or an actual joystick driver for use in the Game Controller control panel</li> </ul> <p>P.S. Total Game Control seems like a great product, but it is of no use in this scenario.</p> http://smartergamer.com/questions/161/how-to-mix-and-match-inputs-from-two-game-controllers-into-one-virtual-controll/541#541 Answer by Andrew Keith for How to mix-and-match inputs from two game controllers into one “virtual” controller? Andrew Keith 2009-12-07T04:43:47Z 2009-12-07T04:43:47Z <p>it depends on the game. If memory serves me right, if the game uses DirectInput, the game will poll for changes using a virtual device. As long as your device can output a similar virtual device code, the game wont know the difference. </p> <p>For example, I play TF2 often. TF2 and all source engine games use bindings to bind the actions to virtual keys. The virtual key code is DirectInput and win32 keycodes. I bind the same actions on my keyboard to my MOUSE3 and MOUSE4 buttons. So in a way, i am using 2 input devices for the same action. How this is possible is because the developers don't poll the device directly, rather they use virtual key codes.</p> <p>You will need to check how to remap the inputs for each device depending on the device. I don't think there is a general solution which works for all devices.</p> http://smartergamer.com/questions/161/how-to-mix-and-match-inputs-from-two-game-controllers-into-one-virtual-controll/682#682 Answer by MiffTheFox for How to mix-and-match inputs from two game controllers into one “virtual” controller? MiffTheFox 2010-02-15T09:38:05Z 2010-02-15T09:38:05Z <p><a href="http://glovepie.org/" rel="nofollow">GlovePIE</a> is a Windows program that allows writing scripts to map inputs to other inputs.</p> <p>For example, if you have two joysticks with two buttons each, then you can use something like this:</p> <pre><code>Joystick1.Button3 = Joystick2.Button1 Joystick1.Button4 = Joystick2.Button2 </code></pre> <p>to consolidate the two.</p> <p>Obviously, your script's gonna need a lot of tweaking, and this is mainly for programmer types who can be bothered to understand stuff like this.</p> <p>GlovePIE is pretty powerful once you know how to work it, however.</p>