diff --git a/src/devices/openxrheadset/OpenXrHeadset.cpp b/src/devices/openxrheadset/OpenXrHeadset.cpp index dd9e0e9..8522b26 100644 --- a/src/devices/openxrheadset/OpenXrHeadset.cpp +++ b/src/devices/openxrheadset/OpenXrHeadset.cpp @@ -642,7 +642,7 @@ bool yarp::dev::OpenXrHeadset::getAxis(unsigned int axis_id, double &value) { unsigned int thumbstickId = inputId / 2; - value = thumbsticks[thumbstickId][inputId - thumbstickId]; //Each thumbstick counts as two axes + value = thumbsticks[thumbstickId][inputId % 2]; //Each thumbstick counts as two axes } else { diff --git a/src/utils/OpenXrFrameViz/main.cpp b/src/utils/OpenXrFrameViz/main.cpp index 4423ac6..e7836bc 100644 --- a/src/utils/OpenXrFrameViz/main.cpp +++ b/src/utils/OpenXrFrameViz/main.cpp @@ -78,6 +78,7 @@ int main(int /*argc*/, char** /*argv*/) bool ok = visualizer.init(); visualizer.camera().animator()->enableMouseControl(); + visualizer.enviroment().setElementVisibility("world_frame", false); if( !ok ) {