#1
|
|||
|
|||
Check for running SteamVR
Hello everyone,
for my program I want to use 2 different controlling scemes. One should be controlled with a gamepad and the other one is for steamvr. I want the following behaviour: If steamvr is already running, I want to use the steamvr controlles. If it's not running, I want to use the gamepad. For those 2 cases I've already created 2 configfiles with vizconnect and I changed my specific code parts within the scripts. I only need to know if steamvr is already open. I haven't found a helpfull command within the steamvr library, to check if steamvr is running. If I run the steamvr.HMD() command when steamvr is closed, it just opens steamvr. Thanks in advance, Andreas Wundlechner |
#2
|
|||
|
|||
Rather than checking if SteamVR is running, would it work for you to check if the controllers are connected or not in there? If so, take a look at the initInputs section of a Vive config file. That checks for whether the controllers are connected.
|
#3
|
|||
|
|||
Thank you for your reply.
it also opens steamvr when I check for controllers by this command: steamvr.getControllerList()[index] But it doesn't matter for me anymore, beause in the meantime I already found a solution for my problem. I installed the psutil library. I search with it for the running process "vrmonitor.exe". If I find the process, then steamvr is running. |
Tags |
controller, steamvr, vizconnect |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
check if fixation is on target | VizMars | Vizard | 1 | 11-14-2017 11:20 PM |
how to check if specified number of targets are in proximity sensor? | Vaquero | Vizard | 8 | 12-27-2016 06:23 PM |
Check if file exists | jassel41 | Vizard | 2 | 09-27-2011 12:22 PM |
Check presence of joysticks ? | hotspur1 | Vizard | 1 | 05-18-2010 11:33 AM |
Check if an avatar has a state "123" | Josh | Vizard | 1 | 04-06-2010 02:11 PM |