vasanthkalai Posted September 20, 2019 Author Share Posted September 20, 2019 @chengnay, Please find below controller bindings data, { "app_key": "steam.flo.vr", "controller_type": "vive_controller", "description": "", "name": "FLOVR_VIVE", "bindings": { "/actions/flo": { "chords": [], "sources": [ { "path": "/user/hand/left/input/grip", "mode": "button", "parameters": {}, "inputs": { "click": { "output": "/actions/flo/in/teleport" } } }, { "path": "/user/hand/right/input/grip", "mode": "button", "parameters": {}, "inputs": { "click": { "output": "/actions/flo/in/teleport" } } }, { "path": "/user/hand/left/input/trackpad", "mode": "trackpad", "parameters": {}, "inputs": { "click": { "output": "/actions/flo/in/playbackactivate" }, "position": { "output": "/actions/flo/in/playback" } } }, { "path": "/user/hand/right/input/trackpad", "mode": "trackpad", "parameters": {}, "inputs": { "click": { "output": "/actions/flo/in/playbackactivate" }, "position": { "output": "/actions/flo/in/playback" } } }, { "path": "/user/hand/left/input/trackpad", "mode": "trackpad", "parameters": {}, "inputs": { "click": { "output": "/actions/flo/in/flyactivate" }, "position": { "output": "/actions/flo/in/flydirection" } } }, { "path": "/user/hand/right/input/trackpad", "mode": "trackpad", "parameters": {}, "inputs": { "click": { "output": "/actions/flo/in/flyactivate" }, "position": { "output": "/actions/flo/in/flydirection" } } } ], "poses": [ { "output": "/actions/flo/in/pose", "path": "/user/hand/left/pose/raw" }, { "output": "/actions/flo/in/pose", "path": "/user/hand/right/pose/raw" } ], "haptics": [], "skeleton": [ { "output": "/actions/flo/in/skeletonleft", "path": "/user/hand/left/input/skeleton/left" }, { "output": "/actions/flo/in/skeletonright", "path": "/user/hand/right/input/skeleton/right" } ] }, "/actions/buggy": { "chords": [], "sources": [], "poses": [], "haptics": [], "skeleton": [] }, "/actions/default": { "chords": [], "sources": [], "poses": [], "haptics": [], "skeleton": [] }, "/actions/platformer": { "chords": [], "sources": [], "poses": [], "haptics": [], "skeleton": [] }, "/actions/htc_viu": { "chords": [], "sources": [ { "path": "/user/hand/left/input/grip", "mode": "button", "parameters": {}, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_02" } } }, { "path": "/user/hand/right/input/grip", "mode": "button", "parameters": {}, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_02" } } }, { "path": "/user/hand/right/input/application_menu", "mode": "button", "parameters": {}, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_01" } } }, { "path": "/user/hand/left/input/application_menu", "mode": "button", "parameters": {}, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_01" } } }, { "path": "/user/hand/left/input/trigger", "mode": "trigger", "parameters": {}, "inputs": { "pull": { "output": "/actions/htc_viu/in/viu_axis_1x" } } }, { "path": "/user/hand/right/input/trigger", "mode": "trigger", "parameters": {}, "inputs": { "pull": { "output": "/actions/htc_viu/in/viu_axis_1x" } } }, { "path": "/user/hand/left/input/trackpad", "mode": "trackpad", "parameters": {}, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_32" }, "position": { "output": "/actions/htc_viu/in/viu_axis_0xy" }, "touch": { "output": "/actions/htc_viu/in/viu_touch_32" } } }, { "path": "/user/hand/right/input/trackpad", "mode": "trackpad", "parameters": {}, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_32" }, "position": { "output": "/actions/htc_viu/in/viu_axis_0xy" }, "touch": { "output": "/actions/htc_viu/in/viu_touch_32" } } }, { "path": "/user/hand/right/input/trigger", "mode": "button", "parameters": { "click_activate_threshold": "0.55", "click_deactivate_threshold": "0.45", "haptic_amplitude": "0.2" }, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_33" } } }, { "path": "/user/hand/left/input/trigger", "mode": "button", "parameters": { "click_activate_threshold": "0.55", "click_deactivate_threshold": "0.45", "haptic_amplitude": "0.2" }, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_press_33" } } }, { "path": "/user/hand/left/input/trigger", "mode": "button", "parameters": { "haptic_amplitude": "0" }, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_touch_33" } } }, { "path": "/user/hand/right/input/trigger", "mode": "button", "parameters": {}, "inputs": { "click": { "output": "/actions/htc_viu/in/viu_touch_33" } } } ], "poses": [], "haptics": [ { "output": "/actions/htc_viu/out/viu_vib_01", "path": "/user/hand/left/output/haptic" }, { "output": "/actions/htc_viu/out/viu_vib_01", "path": "/user/hand/right/output/haptic" } ], "skeleton": [] } } } Link to comment Share on other sites More sharing options...
vasanthkalai Posted September 22, 2019 Author Share Posted September 22, 2019 @chengnay, is the above info is sufficient for the debugging or do you need more info on it? Please let me know... Link to comment Share on other sites More sharing options...
vasanthkalai Posted September 24, 2019 Author Share Posted September 24, 2019 @chengnay and @VibrantNebula, Please let me know any work around.. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted September 27, 2019 Share Posted September 27, 2019 @vasanthkalai I will need more time to check why SteamVR ActionSet won't work with VIU's bindings. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted October 1, 2019 Share Posted October 1, 2019 @vasanthkalai Currently, I found out that you can do the below method to allow VIU + Custom bindings to work together. 1. Create your own script 2. Add SteamVR_ActivateActionSetOnLoad.cs and your script 3. In your own script, public SteamVR_Input_Sources LeftInputSource = SteamVR_Input_Sources.LeftHand; public SteamVR_Input_Sources RightInputSource = SteamVR_Input_Sources.RightHand; private void Update() { Debug.Log("Left Teleport value:" + SteamVR_Actions.FLO.Teleport.GetState(LeftInputSource)); Debug.Log("Right Teleport value:" + SteamVR_Actions.FLO.Teleport.GetState(RightInputSource)); } Let me know if you still need more help. Cheers! Link to comment Share on other sites More sharing options...
vasanthkalai Posted October 3, 2019 Author Share Posted October 3, 2019 @chengnay, Thanks for the update. I already tried the above mentioned way. In that GetState is working fine. But GetStateDown is not wooing. Could you please check this issue? Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted October 4, 2019 Share Posted October 4, 2019 @vasanthkalai It seems that GetStateDown's logic is wrong. I printed the values from GetStateDown, When I pull the trigger, active is true, actionData.bState is true, but actionData.bChanged is false. When I release the trigger, active is true, actionData.bState is false, and actionData.bChanged is false. From below note, I think state changes from false to true, bChanged should be true. /// <summary>True when the action's state changes from false to true. Note: Will only return true if the action is also active.</summary> /// <remarks>Will only return true if the action is also active.</remarks> Probably you should report bug to SteamVR, and try using GetState instead for now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now