From 1b7e8c35201eaf390aed355a957232c707c8e2bd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 27 Apr 2022 01:16:46 +0200 Subject: [PATCH] Use ImGui keycodes. --- server/TracySourceView.cpp | 4 ++-- server/TracyView.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 3a8eeeb5..20110b0f 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1369,7 +1369,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) m_childCalls = false; m_childCallList = false; } - else if( ImGui::IsKeyDown( 'Z' ) ) + else if( ImGui::IsKeyDown( ImGuiKey_Z ) ) { m_childCalls = !m_childCalls; } @@ -1566,7 +1566,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) break; } - if( samplesReady && ImGui::IsKeyDown( 'Z' ) ) m_childCalls = !m_childCalls; + if( samplesReady && ImGui::IsKeyDown( ImGuiKey_Z ) ) m_childCalls = !m_childCalls; if( jumpOut != 0 ) { diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 69c3b1be..9af3a766 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -772,7 +772,7 @@ bool View::DrawImpl() assert( m_shortcut == ShortcutAction::None ); if( io.KeyCtrl ) { - if( ImGui::IsKeyPressed( 'F' ) ) + if( ImGui::IsKeyPressed( ImGuiKey_F ) ) { m_findZone.show = true; m_shortcut = ShortcutAction::OpenFind;