Keycodes for VR controls?

I want to detect when certain buttons are pressed on varying types of VR controls. I’m currently testing with a Vive headset, but I’m looking to make it also Oculus + Index

4 Likes

You can find out the keycodes by using

game:GetService("UserInputService").InputBegan:connect(function(inputobject) 
print(inputobject.KeyCode.Name, inputobject.UserInputType.Name)
end)


Can’t use logs while in VR- it’s also making debugging very tricky

I DID find a temporary workaround though…

7 Likes

if anyone stumbles across this thread, you’re welcome. :^)

I will be compiling more…

34 Likes

There are some things wrong. For one what are ButtonR3 and L3? Second on the right controller, you wrote R2 and L2. But I think I get the idea. But seriously. What’s R3 and L3

2 Likes

When you click on the thumbstick instead of moving them? Possibly, but unsure. I’ll look into it as well to make sure

Sorry for the old thread bump, but would there be an Oculus Rift / Oculus Rift S diagram I could use as well??

1 Like

Aren’t all the oculus controllers the same?