BOLL7708 / OpenVR2Key

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

cord is sending the key multiple times and also sending single key bind #89

Open Zod1234 opened 11 months ago

Zod1234 commented 11 months ago

the game I'm playing gzdoomvr which doesnt support modifiers and need more binds and came upon this.

I'm using a quest 2.

to clarify my issue, ill just use one bind and one cord

I have L9 (which defaults to the oculus X button, left controller) bound to output 'r' in your software

I also have a cord1 which is left hand X button single + left hand grip button held bound to output 'f' in your software

if I test in notepad pressing the oculus X button outputs a single r as desired.

if I hold left grip and then press X once it outputs rfff, sometimes rffff. i can hold grip the entire time and press and release X and it will output a string like rfffrffffrffff etc. even though X was never pressed on its own.

i cleared the L9 binding in your software to just try the cord alone and it outputs fff or ffff

so what I was after was if I use a cord it would only output the binding once just like a single binding.

also, if a cord uses a button that is also bound on its own, it wouldn't send both.

in the combo I tried single and click for the X button just to see if there was any difference but same result.

BOLL7708 commented 10 months ago

I don't have a Quest 2 or any other Quest headset so not sure how I would test this. Chords have been weird as their state depends on multiple buttons, I'm pretty sure I had to handle them individually, but will have to check back in to see if there's any oddity the next time I work on this project. For native SteamVR headsets it appear to work fine, so maybe the Quest passing through the Meta/SteamVR transition does something differently.