Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetActionBindingInfo returns null exception if duplicate binding #1817

Open
ChrisWarner103 opened this issue Mar 4, 2024 · 0 comments
Open

Comments

@ChrisWarner103
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant