matzman666 / OpenVR-InputEmulator

An OpenVR driver that allows to create virtual controllers, emulate controller input, manipulate poses of existing controllers and remap buttons. A client-side library that communicates with the driver via shared-memory is also included.
GNU General Public License v3.0
718 stars 138 forks source link

Request: Moving controllers with keyboard #48

Open uslisse opened 6 years ago

uslisse commented 6 years ago

Hello, would it be possible to rotate/translate the controllers in the game using mouse and keyboard with no support at all of the vive controllers? What i mean is to set a specific position, at each time, for the controllers inside the game even if the real controllers are off.

traveltrousers commented 6 years ago

yes, use the startdesktopmode.bat in the install folder

uslisse commented 6 years ago

hello traveltrousers, thank you for your reply. i found the startdesktopmode.bat in the client_overlay\bin\win64 and when i try to launch it i get the error:

"Windows cannot find 'OpenVr-InputEmulatorOverlay.exe'. Make sure you typed the name correctly and try again".

Any idea how to solve it?

traveltrousers commented 6 years ago

install the release and run it from the install directory.... sounds like you're trying to 'run' the downloaded source code

https://github.com/matzman666/OpenVR-InputEmulator/releases

uslisse commented 6 years ago

thank you, would you be able to point me at the part of the openvr api that manages controller position/offset and buttons?

uslisse commented 6 years ago

Also, do you think it would be possible to emulate the trackers instead of the controllers?

onnowhere commented 6 years ago

Bump. I'd like to know how to adjust controller rotation and position as well. Also, I noticed that using command line to adjust controller rotation and position is slow and only updates every moment or so. Any way around that?

Also it seems that when I use the virtual controllers too much, the controllers randomly cause the entire steamvr to stop recognizing the devices, and I have to restart steam to fix and reconnect the virtual controllers. Edit: I think it might be that using UCR to run AHK code on button press isn't doing it one time but constantly running it while the button is held e_e, causing it to overflow the input Edit2: Not sure now, it's happening even when I fixed the issue. Is it because I have a 'null' controller to move my head using r57zone's head to buttons system, and when I move my hands with the virtual controller and use controls on the null controller to rotate and move around or use WASD to move around at the same time, it gets confused and quits?