mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Backends, Examples: Add comments about using WndProc handler and WantCaptureXXX flags. (#5061)
+ update README.
This commit is contained in:
		@@ -237,8 +237,8 @@ static void ImGui_ImplSDL2_UpdateKeyModifiers(SDL_Keymod sdl_key_mods)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.
 | 
			
		||||
// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application.
 | 
			
		||||
// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application.
 | 
			
		||||
// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data.
 | 
			
		||||
// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data.
 | 
			
		||||
// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags.
 | 
			
		||||
// If you have multiple SDL events and some of them are not meant to be used by dear imgui, you may need to filter events based on their windowID field.
 | 
			
		||||
bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user