mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Nav: Examples: Added commented out io.NavFlags |= ImGuiNavFlags_EnableKeyboard to all examples. (#787)
This commit is contained in:
		| @@ -614,6 +614,7 @@ int main(int, char**) | ||||
|     setup_vulkan(window); | ||||
|  | ||||
|     // Setup ImGui binding | ||||
|     ImGuiIO& io = ImGui::GetIO(); (void)io; | ||||
|     ImGui_ImplGlfwVulkan_Init_Data init_data = {}; | ||||
|     init_data.allocator = g_Allocator; | ||||
|     init_data.gpu = g_Gpu; | ||||
| @@ -623,6 +624,7 @@ int main(int, char**) | ||||
|     init_data.descriptor_pool = g_DescriptorPool; | ||||
|     init_data.check_vk_result = check_vk_result; | ||||
|     ImGui_ImplGlfwVulkan_Init(window, true, &init_data); | ||||
|     //io.NavFlags |= ImGuiNavFlags_EnableKeyboard;  // Enable Keyboard Controls | ||||
|  | ||||
|     // Setup style | ||||
|     ImGui::StyleColorsDark(); | ||||
| @@ -635,7 +637,6 @@ int main(int, char**) | ||||
|     // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. | ||||
|     // - Read 'misc/fonts/README.txt' for more instructions and details. | ||||
|     // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! | ||||
|     //ImGuiIO& io = ImGui::GetIO(); | ||||
|     //io.Fonts->AddFontDefault(); | ||||
|     //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); | ||||
|     //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 omar
					omar