OpenVR-InputEmulator icon indicating copy to clipboard operation
OpenVR-InputEmulator copied to clipboard

Command-line hangs when adding a controller

Open bensulli opened this issue 8 years ago • 1 comments

Hi,

I'm using client_commandline.exe addcontroller controller01 on Windows and the console simply hangs doing nothing as if it never gets a return code from SteamVR. Is there any way I can debug this?

I tried the .bat file as well, same thing - just hangs immediately.

I have installed Boost, QT and the regular package of OpenVR-InputEmulator (not sure if they're necessary, but just in case).

Thanks!

bensulli avatar Nov 16 '17 17:11 bensulli

I am having this exact issue as well. I am using the source code and I can pin point the yield:

In client_commands, addTrackedController():

         vrinputemulator::VRInputEmulator inputEmulator;
Here --> inputEmulator.connect(); 
         inputEmulator.addVirtualDevice(vrinputemulator::VirtualDeviceType::TrackedController, serial, false);

Line 112 in virtualinputemulator, VRInputEmulator::connect():

         	_ipcPromiseMap.insert({ messageId, std::move(respPromise) });
         }
Here --> _ipcServerQueue->send(&message, sizeof(ipc::Request), 0);
         // Wait for response
         auto resp = respFuture.get();

I'm hoping to create joycon support for VR, but this is a huge roadblock. I'll continue to try and figure it out but I honestly have no clue what I'm doing.

linkoid avatar Dec 13 '18 21:12 linkoid