Jump to content
(Open Beta) HyperSpin 2 is now available for everyone ×

Vjoy user


Recommended Posts

Posted

Hi Hyper spinners,

 

 

I want to turn my mouse/spinner into steering wheel & use
in emulators like sega emulator 2, After checking
on websites found vjoy can do the job. Installed
latest version from soundforge but I am having a small problem
vjoy show as unspecified device and not as joystick.
BEcause of this Sega emulator cannot detect vjoy in config.

I am using win7 64x with ultimate keyboard decoder did uninstalling and reinstalling but still shows as unspecified device.

 

What should I do?

 

Hope someone can help me million thanks
 

+++++Above problem I have solved+++++++
 

Posted

I have set up vjoy in RL with game names for spintrak and have written a FreePIE script that maps my spintrak input to the right analogue of a vjoy device so that I can play some sega emulator 2 car racing games.

What I'm wondering is whether how to run my FreePIE script with the games , and the emulator, or if there's a better way to do this?

Posted

I don't have the answer to your question, but I was just messing with Vjoy this morning so thought I'd mention a couple things.

 

You may be able to get your script (AHK scripts at least) working using the "User Functions" of RocketLauncher located in the Libs folder. I was looking for instructions on this feature earlier, but had no luck finding anything and couldn't get it to work myself (even with Agents help).

 

One thing I'll warn you about with Vjoy is that having Vjoy active or even having its drivers enabled can cause issues with other games, emulators and programs. I only use it as a very last resort for exactly that reason (for example for Netherrealm PC games).

This morning I set up an AHK script that turns on the Vjoy drivers, turns on Vjoy, loads the Vjoy ini only when a certain game is launched from HS, then when the game closes it closes Vjoy and then disables all its drivers. Vjoy can be a pain in the ass.

Posted

I don't have the answer to your question, but I was just messing with Vjoy this morning so thought I'd mention a couple things.

 

You may be able to get your script (AHK scripts at least) working using the "User Functions" of RocketLauncher located in the Libs folder. I was looking for instructions on this feature earlier, but had no luck finding anything and couldn't get it to work myself (even with Agents help).

 

One thing I'll warn you about with Vjoy is that having Vjoy active or even having its drivers enabled can cause issues with other games, emulators and programs. I only use it as a very last resort for exactly that reason (for example for Netherrealm PC games).

This morning I set up an AHK script that turns on the Vjoy drivers, turns on Vjoy, loads the Vjoy ini only when a certain game is launched from HS, then when the game closes it closes Vjoy and then disables all its drivers. Vjoy can be a pain in the ass.

 

thank you so much for explaining me , I have read your previous post that is really pain. I just wanted to use for some games not all of them.

How can I use AHK Script can you share & guide me ?

Posted

Sure. Here's what I do to make sure Vjoy and its drivers are only ever active when I need them.

 

First, to control the drivers you need to add Devcon to your PC. Devcon is a tool from the Microsoft developers toolkit that can control Device Manager without you needing to actually open Device Manager.

It comes in 32bit & 64bit versions. I'll attach the 64bit version for you. Devcon.exe needs to be unzipped and placed into your Windows/System32 folder. I also have mine set to run as admin & Windows 7 compatibility (might not be necessary on your PC. I'm on Win 10 home) .

 

devcon.zip

 

Here is the AHK I use for PC games that need to use Vjoy. I launch this as the Application in the PCLauncher module settings.

-The first Run line has Devcon turn on the Vjoy drivers (which are always disabled by default on my PC so they don't casue problems). You can see your Vjoy drivers in Device Manager under the Human Interface Devices tab at the bottom.

-The 2nd Run line points to my Vjoy.exe and tells it to load the Vjoy profile for the game (to get this to work I load the profile this way and not through RocketLauncher Keymapper)

-The 3rd Run line tells it to launch the game itself, in this case the Steam version of Mortal Kombat X. (probably don't need to use this 3rd line if you're not launching a PC game)

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

SetBatchLines -1


Run, C:\Windows\System32\devcon.exe enable vjoy*
Run, C:\Program Files (x86)\VJoy\VJoy.exe -file "C:\Program Files (x86)\Vjoy\MK10.ini"
Run, C:\Program Files (x86)\Steam\SteamApps\common\MK10\Binaries\Retail\MK10.exe

Here is the AHK I run after the game is exited. I set this AHK as my PostExit program in the PCLauncher module settings.

-First Run line closes the Vjoy program.

-2nd Run line disables the Vjoy drivers in device manager

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

  Run, C:\Program Files (x86)\VJoy\VJoy.exe -exit
  Run, C:\Windows\System32\devcon.exe disable vjoy*
  return 

The second AHK closes everything Vjoy related so it can't interfere with any other games, emulators, programs etc...

So far it works perfectly. Not sure exactly where or how you would need to activate the AHKs for the emulator you want to use Vjoy with, but the Vjoy lines should work the same for you.

  • 3 weeks later...
Posted
On 10/17/2016 at 10:52 PM, Metalzoic said:

Sure. Here's what I do to make sure Vjoy and its drivers are only ever active when I need them.

 

First, to control the drivers you need to add Devcon to your PC. Devcon is a tool from the Microsoft developers toolkit that can control Device Manager without you needing to actually open Device Manager.

It comes in 32bit & 64bit versions. I'll attach the 64bit version for you. Devcon.exe needs to be unzipped and placed into your Windows/System32 folder. I also have mine set to run as admin & Windows 7 compatibility (might not be necessary on your PC. I'm on Win 10 home) .

 

devcon.zip

 

Here is the AHK I use for PC games that need to use Vjoy. I launch this as the Application in the PCLauncher module settings.

-The first Run line has Devcon turn on the Vjoy drivers (which are always disabled by default on my PC so they don't casue problems). You can see your Vjoy drivers in Device Manager under the Human Interface Devices tab at the bottom.

-The 2nd Run line points to my Vjoy.exe and tells it to load the Vjoy profile for the game (to get this to work I load the profile this way and not through RocketLauncher Keymapper)

-The 3rd Run line tells it to launch the game itself, in this case the Steam version of Mortal Kombat X. (probably don't need to use this 3rd line if you're not launching a PC game)


#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

SetBatchLines -1


Run, C:\Windows\System32\devcon.exe enable vjoy*
Run, C:\Program Files (x86)\VJoy\VJoy.exe -file "C:\Program Files (x86)\Vjoy\MK10.ini"
Run, C:\Program Files (x86)\Steam\SteamApps\common\MK10\Binaries\Retail\MK10.exe

Here is the AHK I run after the game is exited. I set this AHK as my PostExit program in the PCLauncher module settings.

-First Run line closes the Vjoy program.

-2nd Run line disables the Vjoy drivers in device manager


#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

  Run, C:\Program Files (x86)\VJoy\VJoy.exe -exit
  Run, C:\Windows\System32\devcon.exe disable vjoy*
  return 

The second AHK closes everything Vjoy related so it can't interfere with any other games, emulators, programs etc...

So far it works perfectly. Not sure exactly where or how you would need to activate the AHKs for the emulator you want to use Vjoy with, but the Vjoy lines should work the same for you.

Thank  you so much metalzoic, Sorry I was away for sometime.

This is something new to me, I will want to try with Sega emulator 3 games like Daytona.

Where will I store both the AHK files?

Do I need PC launcher module to run AHK or sega emulator module can take care?

I use freepie to run the script as mouse but to use this I will need to turn Vjoy.  Is Vjoy profile really needed or I can ignore this part?

 

 

 

 

 

 

Posted
7 minutes ago, shitoken said:

Thank  you so much metalzoic, Sorry I was away for sometime.

This is something new to me, I will want to try with Sega emulator 3 games like Daytona.

Where will I store both the AHK files?

Do I need PC launcher module to run AHK or sega emulator module can take care?

I use freepie to run the script as mouse but to use this I will need to turn Vjoy.  Is Vjoy profile really needed or I can ignore this part?

 

 

 

 

 

 

You'd probably need to run the AHKs using the UserFunction settings in RocketLauncher. I can't help you there though because I've never once gotten them to work. Agent47, 32 assassing or ninja might know how though.

 

As far as I know Vjoy has to have a profile to work, because that is what tells it which buttons are which. Without the profile nothing is mapped.

Posted

Hope they will read this message and join us.

Now what I do is I just run the mousesteering.py script in freepie and then enable vjoy thats it and emulator allow me to set the mouse as steering wheel.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...