Toggle profiler window using F3.
PiperOrigin-RevId: 830869956 Change-Id: I396f89f95672096f59b909b9415be2168aac6473
This commit is contained in:
committed by
Copybara-Service
parent
1fbea85ef0
commit
2261733aa4
@@ -468,7 +468,9 @@ void App::HandleKeyboardEvents() {
|
||||
}
|
||||
|
||||
// Visualization shortcuts.
|
||||
if (ImGui_IsChordJustPressed(ImGuiKey_F6)) {
|
||||
if (ImGui_IsChordJustPressed(ImGuiKey_F3)) {
|
||||
ui_.profiler = !ui_.profiler;
|
||||
} else if (ImGui_IsChordJustPressed(ImGuiKey_F6)) {
|
||||
vis_options_.frame = (vis_options_.frame + 1) % mjNFRAME;
|
||||
} else if (ImGui_IsChordJustPressed(ImGuiKey_F7)) {
|
||||
vis_options_.label = (vis_options_.label + 1) % mjNLABEL;
|
||||
|
||||
Reference in New Issue
Block a user