Fix assertion failure when reading controller state for imgui

This commit is contained in:
Guillaume Meunier
2025-12-04 08:50:51 +01:00
parent 85cde18718
commit f12ebe14bc
+2 -2
View File
@@ -651,9 +651,9 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
}
}
if (current_aim_interaction == 0)
if (current_aim_interaction == 0 or not controller_position.first)
state.pointer_position = index_tip_position.first;
else if (current_aim_interaction == 1)
else if (current_aim_interaction == 1 or not index_tip_position.first)
state.pointer_position = controller_position.first;
else
{