BOLL7708 / OpenVR2Key

Simulates key presses from SteamVR input
120 stars 16 forks source link

Active keys blocked #36

Open NarutoIzumaki1 opened 1 year ago

NarutoIzumaki1 commented 1 year ago

When I open SteamVR and launch OpenVR2Key from SteamVR, it says "OpenVR status: connected" "Current app ID: default" "Active keys: Blocked" and I don't know why it says default on Current app ID when for other people it's different image

BOLL7708 commented 1 year ago

Current app ID says that when there is no game detected, which means any settings you do will be applied to the default profile. Are you running a scene application? That usually means a game or application that provides imagery for the headset.

Blocked usually means that you have the SteamVR dashboard open, that prevents the application from reading inputs, so there are no keys to show.

NarutoIzumaki1 commented 1 year ago

Whenever I go into a game (not in steamvr just on steam) the current app id shows and openvr status in connected and the active keys is unblocked but when press A for example (when in the game) it doesn't show on the active keys and they stay as unblocked

BOLL7708 commented 1 year ago
  1. Which VR hardware are you using?
  2. Have you checked if there are binding for your controller?
  3. Which game are you trying to use this in?
NarutoIzumaki1 commented 1 year ago

Idk what hardware but I use the quest 2 Yes there are bindings Gorilla Tag

NarutoIzumaki1 commented 1 year ago

I don't know what hardware but I use the quest 2 Yes there are bindings Gorilla Tag

NarutoIzumaki1 commented 1 year ago

I don't know why you haven't answered other than not knowing the solution

NarutoIzumaki1 commented 1 year ago

I found out how to make the active keys show but whenever I press A which is assigned to F9 and my soundboard is binded to F9 (so a sound plays), it doesn't play and also openvr2key keeps disappearing but when I check task manager it's running even though its not on the task bar or anywhere else to show.

BOLL7708 commented 1 year ago

A Quest 2 is your VR hardware yeah. Look up the difference between hardware and software.

And I've been out of town over the weekend, thus I hadn't answered yet, I do try to have a life outside of the internet and code 😋

Does your soundboard need focus to work? This application does not set focus anywhere, it just triggers the keys as is, which means the applications you want to trigger needs to register global hotkeys. This means keys that can be pressed regardless of if the application window has focus or not. Make sure that is the case, otherwise it will be hard to make it work.

Not sure why it would keep vanishing, it has options to minimize to system tray, otherwise it will stay in the taskbar. What Windows version are you on? I have not tested this on 11 to see how it acts on there.

NarutoIzumaki1 commented 1 year ago

I'm on Windows 10 and the soundboard I use is called Soundpad

BOLL7708 commented 1 year ago

Reading this documentation the hotkeys are supposed to be global.

  1. Are you doing this without the Steam dashboard open? Having it open will block input to this application?
  2. Does this hotkey work when pressing it on key keyboard?
  3. Do you see the key you bound show up in Active keys?
  4. Also try to open the dashboard once, then dismiss it again, and see if that makes any difference.
VRslay commented 1 year ago

i cannot use it. It says Active key Unblocked and i tried to close and open my menu so manny times but it still did not work. And yes im trying it in a game. Im using SteamVR and still does nnot work.

BOLL7708 commented 1 year ago

I dog-food this application and use it myself every VR session so I'm not sure what to go on without more information. As for you @VRslay, welcome, first off what VR hardware are you using and what bindings are set for OpenVR2Key in SteamVR?

AngerIssues2 commented 1 year ago

It worked for me but that was only one time and I did the same thing I did before and it does not work anymore it still says unblocked

AngerIssues2 commented 1 year ago

I found out how to make the active keys show but whenever I press A which is assigned to F9 and my soundboard is binded to F9 (so a sound plays), it doesn't play and also openvr2key keeps disappearing but when I check task manager it's running even though its not on the task bar or anywhere else to show.

how?

NarutoIzumaki1 commented 1 year ago

I found out how to make the active keys show but whenever I press A which is assigned to F9 and my soundboard is binded to F9 (so a sound plays), it doesn't play and also openvr2key keeps disappearing but when I check task manager it's running even though its not on the task bar or anywhere else to show.

how?

It finally worked for me and I know how to make it work. When you load steamvr it should open automatically, when you're in steamvr do not look at the desktop in your vr otherwise it will turn off and not work so go to your library (in steamvr) and play the game normally then when you're in the game, go to your pc and on openvr2key (DO NOT GO TO DESKTOP ON STEAMVR) bind the key you want so for example my "A" button is R14 but yours is probably R9 so scroll to it and bind it to for example "O", once you did that open soundpad or whatever software you're using and bind a sound to O. Now when you're in the game on you oculus just play normally and press the "A" button to play the sound. Hope this helped.