PDA

View Full Version : controller conflicts



loppydog
10-23-2010, 09:49 PM
Hello guys, I stumbled upon a fix for a problem I have been struggling with, And I wanted to share. So my problem is this....I have multiple joystick on my cabinet, like I am sure most people do. In my case I have two Aimtrak guns and two "VJOY" virtual joysticks. I have to use the virtual joysticks for games that do not allow you to use keyboard mapping.
So no matter what I do, the first two devices are ALWAYS the Aimtraks and the VJOY joysticks get bumped to numbers 3 and 4. If I unplug the Aimtraks the virtual joystick go back to the 1 and 2 spot. Now it seems that most games that force you to use a joystick, also do not allow you to choose which joystick you want to use. So when I fire up a game, in this case the PC game Platypus, the Aimtraks are the default controllers.....not good!
Now on to the fix....I tried everything to change the internal Windows order of these devices. I would have been happy to just figure out a way to swap the guns for the virtual joysticks, but nothing worked including trying to edit the registry. But then I found a program called Devcon. This program is made by microsoft, and it is a command line program for doing all sorts of stuff with Windows. What I used it for was to disable and re-enable my usb Aimtrak guns. So now with AHK I can disable my guns before the game loads and then re-enable them after the game closes. This is working great for me, and I am sure other people might find this useful. Here is the command I am using:


run, C:\Devcon\devcon.exe disable *HID\VID_D209* ; to disable
run, C:\Devcon\devcon.exe enable *HID\VID_D209* ; to enable

Here is a site that tells more about the program:

http://support.microsoft.com/kb/311272

djvj
10-24-2010, 03:41 PM
Awesome find loppydog. The systems I use my aimtraks on, I don't use for other games yet. But if I ever do, I'm sure this will help me alot.

loppydog
10-24-2010, 04:50 PM
I prefer to just leave my Aimtraks plugged in at all times. Thats why this is so important for me. There are very few games that I need to use VJOY for, so scripting those for Devcon is the easiest choice for me.