diff options
| author | Bastiaan Olij <mux213@gmail.com> | 2022-03-09 19:09:25 +1100 | 
|---|---|---|
| committer | Bastiaan Olij <mux213@gmail.com> | 2022-06-16 16:52:13 +1000 | 
| commit | 95f75b232fde3d55e6042819986a7ca71de62d3f (patch) | |
| tree | 99e946d79eaa2cb54e147d3341be4c2932b3995a /modules/openxr/openxr_interface.cpp | |
| parent | 9ddf13e7addd26de56e16af64946751de291112d (diff) | |
Adding HTC tracker support
Diffstat (limited to 'modules/openxr/openxr_interface.cpp')
| -rw-r--r-- | modules/openxr/openxr_interface.cpp | 19 | 
1 files changed, 18 insertions, 1 deletions
| diff --git a/modules/openxr/openxr_interface.cpp b/modules/openxr/openxr_interface.cpp index ab06583932..9dfa005600 100644 --- a/modules/openxr/openxr_interface.cpp +++ b/modules/openxr/openxr_interface.cpp @@ -57,7 +57,24 @@ PackedStringArray OpenXRInterface::get_suggested_tracker_names() const {  	PackedStringArray arr = {  		"left_hand", // /user/hand/left is mapped to our defaults  		"right_hand", // /user/hand/right is mapped to our defaults -		"/user/treadmill" +		"/user/treadmill", + +		// Even though these are only available if you have the tracker extension, +		// we add these as we may be deploying on a different platform than our +		// editor is running on. +		"/user/vive_tracker_htcx/role/handheld_object", +		"/user/vive_tracker_htcx/role/left_foot", +		"/user/vive_tracker_htcx/role/right_foot", +		"/user/vive_tracker_htcx/role/left_shoulder", +		"/user/vive_tracker_htcx/role/right_shoulder", +		"/user/vive_tracker_htcx/role/left_elbow", +		"/user/vive_tracker_htcx/role/right_elbow", +		"/user/vive_tracker_htcx/role/left_knee", +		"/user/vive_tracker_htcx/role/right_knee", +		"/user/vive_tracker_htcx/role/waist", +		"/user/vive_tracker_htcx/role/chest", +		"/user/vive_tracker_htcx/role/camera", +		"/user/vive_tracker_htcx/role/keyboard"  	};  	return arr; |