ValveSoftware / steamvr_unreal_plugin

SteamVR Input Unreal Plugin - Documentation at: https://github.com/ValveSoftware/steamvr_unreal_plugin/wiki Sample project (UE4.15-4.23): https://github.com/ValveSoftware/steamvr_unreal_plugin/wiki/sample/SteamVRInputPlugin.zip Sample Project (UE.424+): https://github.com/ValveSoftware/steamvr_unreal_plugin/wiki/sample/SteamVRInputPlugin_UEIntegrated.7z
Other
166 stars 29 forks source link

How can I find out which controllers a player with HTC is using? Knuckles or not? #97

Closed Wazzdaka closed 4 years ago

Wazzdaka commented 4 years ago

I figured out your plugin. Inputs for Oculus, HTC and WMR work for me. One problem remains. How can I find out which controllers a player with HTC is using? Knuckles or not?

1runeberg commented 4 years ago

Hi @Wazzdaka,

You can use the below node on an Axis Action you have in your project. In the screenshot below we used the "SqueezeLeft" action from the sample project:

image

Just remember to add the word "axis" at the end of the action name you defined in the Input Settings.

1runeberg commented 4 years ago

Closing issue for now, please re-open if you have any issue.

There Sample Project updated yesterday also has a sample of this functionality implemented: https://github.com/ValveSoftware/steamvr_unreal_plugin/wiki/sample/SteamVRInputPlugin_UEIntegrated.7z

1runeberg commented 4 years ago

If anyone else is seeing further problems with this, just let us know and we can re-open this issue report :)

Cheers, Rune

badVibes-- commented 3 years ago

Could you guys please solve this in a more elegant way. What am I supposed to do until the user touches the selected axis? I have to change the controller mesh depending on which controller the user has and not displaying anything until they touch something feels like a bug. I haven't seen one game that starts with 'please press a button so we know what controller you have'. It just seems silly.

You need to work with Epic to add an event that triggers when this information becomes available. Thank you.

1runeberg commented 3 years ago

Hi @badVibes-- Have you tried the FindSteamVR_InputBindingInfo and GetSteamVR_InputBindingInfo nodes? They don't require a prior input.

SteamVRInput is an actions-based system and isn't controller-based, ideally applications shouldn't need the controller type so there's no direct way to query a controller type.

But the above nodes should report information about the action and which controller the runtime detected in a given user session, so you can use it that way to extract controller type if you need to.

badVibes-- commented 3 years ago

Well, in the end i was able to get the info from bindings to axis inputs fast enough. Thank you for your suggestions.