Cannot detect VR inputs

I’m having an issue where I am not able to detect when a player tries to press a button on a VR controller. I’ve did some digging around to the point where I’m at a dead end. I tried the normal / standard way of mapping inputs with UserInputService, but I’m not getting a print from that. I also tried to use ContextActionService, and in return, no prints. I’m not too sure where to go from here as a post on the developer forum and another third party forum says they work similar to Xbox controllers. Again, I’m getting no print or results from that. I’ve tried to print most things I know / can find from google searches and Developer Hub. I’m currently using an Oculus Rift to test this while in studio. Although the VR inputs are not coming through, normal key inputs are working fine.

1 Like

Do you have any videos showing the problem? It could help us see what’s wrong.

Could you provide the script of you detecting the input so I could look into it?

I apologize for the delayed reply. I post this before I went offline. I didn’t expect to get quick replies. Any who, I’ve recorded and uploaded a demonstration of what I am talking about. As well as here is the script I wrote real quick to test it.

LocalScript used
local UserInputService = game:GetService("UserInputService")
local PlayerService = game:GetService("Players")
local LocalPlayer = PlayerService.LocalPlayer
local Mouse = LocalPlayer:GetMouse()

function InputBegan(Input)
    print("INPUT BEGAN:")
    print(" - TYPE:",tostring(Input.UserInputType))
    print(" - KEY:",tostring(Input.KeyCode))
end

function KeyDown(Key)
    print("MOUSE DETECTED KEY DOWN:",tostring(Key))
end

Mouse.KeyDown:Connect(KeyDown)
UserInputService.InputBegan:Connect(InputBegan)

1 Like