mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Examples: Emscripten: Fixed not enabling Docking and Nav by default. (#2494)
This commit is contained in:
		@@ -61,8 +61,9 @@ int main(int, char**)
 | 
			
		||||
    IMGUI_CHECKVERSION();
 | 
			
		||||
    ImGui::CreateContext();
 | 
			
		||||
    ImGuiIO& io = ImGui::GetIO(); (void)io;
 | 
			
		||||
    //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;  // Enable Keyboard Controls
 | 
			
		||||
    //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;   // Enable Gamepad Controls
 | 
			
		||||
    io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;       // Enable Keyboard Controls
 | 
			
		||||
    //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;      // Enable Gamepad Controls
 | 
			
		||||
    io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;           // Enable Docking
 | 
			
		||||
 | 
			
		||||
    // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file.
 | 
			
		||||
    // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user