openvr icon indicating copy to clipboard operation
openvr copied to clipboard

GetActionBindingInfo returns null exception if duplicate binding

Open ChilliChris opened this issue 1 year ago • 0 comments

I've been trying to use OpenVR.Input.GetActionBindingInfo to get more detailed information then GetLocalisedName. But I've encountered an issue where if you have your bindings set up in SteamVR to use the same binding twice. For example, the Jump input on both controllers.

When calling the function on the Jump action it will return NullReferenceException: Object reference not set to an instance of an object. Upon removing the duplicate binding and only having one available it will return the desired behaviour.

Wondering if I'm doing something wrong or in the values to pass or if it's just the functions behaviour for it to not be able to return for duplicate bindings.

ChilliChris avatar Mar 04 '24 16:03 ChilliChris