mmorselli / Joy2OpenVR

Interface to OpenVR Input Emulator to translate any Direct Input controllers commands into VR Controller commands
34 stars 4 forks source link

HTC Vive controllers and VJoy Support #4

Open baiketsu opened 6 years ago

baiketsu commented 6 years ago

Hello, (sorry for the faults, I'm french) I would like to build a device whose information will be processed by the PC (like a touchpad but the data is special) and combine with the orientation of the headset (HTC vive). This data will allow me to move according to the orientation of my "eyes". So I created a virtual gamepad (with vJoy) on which I send the combined data (only the virtual gamepad's joystick data is used). But for some games (PAYDAY2 vr, Fallout 4 vr, The forest) I have no way to send this data (Note : on Skyrim: no problem).

What I would like do is send the combined data to a virtual gamepad that (one day I hope) will retransmit tem to the game by simulating the move by touchpad. (vJoy joystick = Vive controller touchpad) Is it possible that with your solution, (or the part of the code relating to the joystick), there is a way to make the games work like according to this comportment?

mmorselli commented 6 years ago

Hi, my program is simply a shell for client_commandline.exe of OpenVR Input Emulator, take a look at the attached batches, after installing OpenVr Input Emulator check your controller ID from the interface and write it into config.bat, so you can try trackpad-up-press.bat on PayDay2 o Fallout4, it should works. If you need to emulate a touch event without press event on touchpad, simply remove the last line of this bat (buttonevent pressandhold)

If this script works, anything that can execute these commands should work

command line batch.zip

baiketsu commented 6 years ago

Thanks for quick response ! I'll test this "script" tonight (It's 14:00 here) .

baiketsu commented 6 years ago

THANK YOU ! it works, and I do not need a virtual controller anymore.

little "problem" in The Forest, even if we ask to release the trackpad, the character continues last action, I will test with the device.

Thanks again. You Rock !!