mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Enable keyboard navigation.
This commit is contained in:
parent
f1e4d949a0
commit
d977fa004d
@ -104,6 +104,7 @@ int main( int argc, char** argv )
|
|||||||
ImGui::CreateContext();
|
ImGui::CreateContext();
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
io.IniFilename = tracy::GetSavePath( "imgui.ini" );
|
io.IniFilename = tracy::GetSavePath( "imgui.ini" );
|
||||||
|
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||||
|
|
||||||
ImGui_ImplGlfw_InitForOpenGL( window, true );
|
ImGui_ImplGlfw_InitForOpenGL( window, true );
|
||||||
ImGui_ImplOpenGL3_Init( "#version 150" );
|
ImGui_ImplOpenGL3_Init( "#version 150" );
|
||||||
|
@ -549,7 +549,7 @@ bool View::DrawImpl()
|
|||||||
|
|
||||||
ImGui::SetNextWindowPos( ImVec2( 0, 0 ) );
|
ImGui::SetNextWindowPos( ImVec2( 0, 0 ) );
|
||||||
ImGui::SetNextWindowSize( ImVec2( m_rootWidth, m_rootHeight ) );
|
ImGui::SetNextWindowSize( ImVec2( m_rootWidth, m_rootHeight ) );
|
||||||
ImGui::Begin( "###Profiler", nullptr, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoMove );
|
ImGui::Begin( "Timeline view###Profiler", nullptr, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoMove );
|
||||||
|
|
||||||
style.WindowRounding = wrPrev;
|
style.WindowRounding = wrPrev;
|
||||||
style.WindowBorderSize = wbsPrev;
|
style.WindowBorderSize = wbsPrev;
|
||||||
|
Loading…
Reference in New Issue
Block a user