Input Action & Axis Mappings not worked on Vive Cosmos Controller from 4.22 to 4.24

Input Action & Axis Mappings not worked on Vive Cosmos Controller from 4.22 to 4.24

Hi all,

May I know anyone have tried using HTC Vive Cosmos on 4.24? If we start with a fresh VR template on 4.24, everything looks OK on Cosmos Controller. But if you switching from older project from 4.22 to 4.24, the Cosmos Controller will no longer work even though I’ve re-import the new Input Action And Axis Mappings from the VR Template 4.24 also not going to work on Cosmos Controller. I think they have done something on the VR template 4.24 since the input is exactly the same. I’ve also google to get answer and have found the “legacy_bindings_vive_cosmos_controller.json” from HTC Vive website to use on SteamVR input but I’ve no idea how to use this json file because I can’t find to load this json file inside the SteamVR input > Edit Controller Bindings.

Thank You!

About the legacy_bindings_vive_cosmos_controller.json, you may get it from here:

{
   "bindings" : {
      "/actions/legacy" : {
         "haptics" : [
            {
               "output" : "/actions/legacy/out/left_haptic",
               "path" : "/user/hand/left/output/haptic"
            },
            {
               "output" : "/actions/legacy/out/right_haptic",
               "path" : "/user/hand/right/output/haptic"
            }
         ],
         "poses" : [
            {
               "output" : "/actions/legacy/in/Left_Pose",
               "path" : "/user/hand/left/pose/raw"
            },
            {
               "output" : "/actions/legacy/in/Right_Pose",
               "path" : "/user/hand/right/pose/raw"
            }
         ],
         "sources" : [
            {
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/left_system_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/left/input/system"
            },
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/left_applicationmenu_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/left/input/y"
            },
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/left_grip_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/left/input/grip"
            },
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/left_a_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/left/input/x"
            },
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/left_axis3_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/left/input/bumper"
            },
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/left_axis0_press"
                  },
                  "position" : {
                     "output" : "/actions/legacy/in/left_axis0_value"
                  },
                  "touch" : {
                     "output" : "/actions/legacy/in/left_axis0_touch"
                  }
               },
               "mode" : "joystick",
               "path" : "/user/hand/left/input/joystick"
            },
            {
               "inputs" : {
				  "click" : {
                     "output" : "/actions/legacy/in/left_axis1_press"
                  },
                  "pull" : {
                     "output" : "/actions/legacy/in/left_axis1_value"
                  },
                  "touch" : {
                     "output" : "/actions/legacy/in/left_axis1_touch"
                  }
               },
               "mode" : "trigger",
               "path" : "/user/hand/left/input/trigger"
            },
			{
               "inputs" : {
                  "pull" : {
                     "output" : "/actions/legacy/in/left_axis4_value_e0"
                  }
               },
               "mode" : "trigger",
               "path" : "/user/hand/left/input/joystick_cap/raw_value"
            },
			{
               "inputs" : {
                  "pull" : {
                     "output" : "/actions/legacy/in/left_axis4_value_e1"
                  }
               },
               "mode" : "trigger",
               "path" : "/user/hand/left/input/trigger_cap/raw_value"
            },
            {
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/right_system_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/right/input/system"
            },
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/right_applicationmenu_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/right/input/b"
            },
            {
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/right_grip_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/right/input/grip"
            },            
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/right_a_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/right/input/a"
            },
			{
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/right_axis3_press"
                  }
               },
               "mode" : "button",
               "path" : "/user/hand/right/input/bumper"
            },
            {
               "inputs" : {
                  "click" : {
                     "output" : "/actions/legacy/in/right_axis0_press"
                  },
                  "position" : {
                     "output" : "/actions/legacy/in/right_axis0_value"
                  },
                  "touch" : {
                     "output" : "/actions/legacy/in/right_axis0_touch"
                  }
               },
               "mode" : "joystick",
               "path" : "/user/hand/right/input/joystick"
            },
            {
               "inputs" : {
				"click" : {
                     "output" : "/actions/legacy/in/right_axis1_press"
                  },
                  "pull" : {
                     "output" : "/actions/legacy/in/right_axis1_value"
                  },
                  "touch" : {
                     "output" : "/actions/legacy/in/right_axis1_touch"
                  }
               },
               "mode" : "trigger",
               "path" : "/user/hand/right/input/trigger"
            },
			{
               "inputs" : {
                  "pull" : {
                     "output" : "/actions/legacy/in/right_axis4_value_e0"
                  }
               },
               "mode" : "trigger",
               "path" : "/user/hand/right/input/joystick_cap/raw_value"
            },
			{
               "inputs" : {
                  "pull" : {
                     "output" : "/actions/legacy/in/right_axis4_value_e1"
                  }
               },
               "mode" : "trigger",
               "path" : "/user/hand/right/input/trigger_cap/raw_value"
            }
         ]
      }
   },
   "controller_type" : "vive_cosmos_controller",
   "description" : "",
   "name" : "Default bindings for legacy applications for Vive cosmos Controllers"
}

I was having problem with oculusGo, about the imputs from 4.22 to 4.24. When I was doing the preview from the engine, the imputs didnt work, but when I did the package and than install on the Go evething worked ok… I dont know if thats a bug…

Hi Giberto, thanks for your feedback. I’ve switched back to 4.22 as it worked perfect for Vive Cosmos. I’ve even tried on 4.25, they now accept back the old Vive input, but the trigger button still not work for Cosmos. If anyone have tried using Vive Cosmos that worked with 4.25. Please help here. Thanks

Did you find any answers to your problem? I am currently having issues binding the inputs of the Cosmos in UE4.25.

Although my issues is I can’t get the thumbstick to work. I can get the button type inputs to work but not the thumbstick on the left or right controller. The thumbstick click to work (pressing straight down to click the button) but not the thumbstick directional movement.

I have tried a brand new VR template project and added all the HTC Cosmos inputs matching what the other inputs that were there for the Steam Controller which also has a thumbstick. Still nothing.

I am currently downloading 4.22 which I will try next. *Update - mapping is so different I couldn’t figure it out. I’m new to this.

same problem here with 4.27: I can’t get the thumbstick to work. I can get the button type inputs to work but not the thumbstick on the left or right controller. The thumbstick click to work (pressing straight down to click the button) but not the thumbstick directional movement.