BOLL7708 / OpenVR2Key

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

Mouse keys #3

Open th0mk opened 4 years ago

th0mk commented 4 years ago

Hey there, love this tool. One thing I'd like to have is mouse keys. I usually use mouse 4 for push to talk, so if that would be possible to add that would be nice.

BOLL7708 commented 4 years ago

It's a bit outside the scope of this application, but I'll add it to my to-do I guess. it might be super easy, or present problems, so we'll see 😋 I'm currently neck deep in a different project so will not be immediately, don't hold your breath 😅💦

itsBorked commented 3 years ago

Would love to see this added as well. How's that coming along by the way?

One thing to note though, I saw in a discussion on Steam that someone suggested maybe the track pads on the Index controller worked as a mouse interaction already.

I have a key bind for something that activates on a game in non-VR which requires the use of LCtrl and Mouse1 to operate. However, attempting to bind a button on the Index controller to LCtrl and then clicking in the right track pad seems to crash the game in question with a lengthy freeze and CTD.

Not sure if it's a functioning failure of the game on call or OVR2K itself. Is there an error log I can submit for you if you're curious?

Anyway, thanks for the nice tool.

BOLL7708 commented 3 years ago

Why this hasn't happened yet is because it appeared to require a whole separate library to emulate clicks instead of keys, and at the time I just had no energy for that. I've started working on my projects again just recently so I could revisit this.

Not sure how to make it on a raw interface level though, as right now clicking is part of how to register the simulated key-presses, by clicking the buttons... 😐 Would take me figuring out how to fit this in without remaking most of the list.

itsBorked commented 3 years ago

Ah, I see. Well I hope you'll figure something out man. It's really the only thing holding me back from fully harnessing the power of such a mod. 🙁

BOLL7708 commented 3 years ago

So I have ideas for this now, no promises yet, but I'm toying with ways of doing it.

One question I have though is: would this work fine with just leaving the mouse cursor where it currently is, or would it be preferred to move the cursor as well? The first alternative is the most convenient to make, but not sure if it's enough to be useful.

AS-Bruce commented 3 years ago

Most games use the HMD for positioning a cursor in VR and mouse "click" for selecting the highlighted option so even being able to bind a mouse click to a motion controller is light years ahead in usability :)

jakeee51 commented 2 years ago

So I have ideas for this now, no promises yet, but I'm toying with ways of doing it.

One question I have though is: would this work fine with just leaving the mouse cursor where it currently is, or would it be preferred to move the cursor as well? The first alternative is the most convenient to make, but not sure if it's enough to be useful.

I'd say the first alternative. We should be able to use the "cursor" in the HMD. I know for a fact my use case for this feature needs only simulate a mouse click within the VR application. How's it going btw?