mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Nav: Caching into g.NavAnyRequest to minimize hot path cost (and so we can add many more request sources)
This commit is contained in:
		| @@ -480,6 +480,7 @@ struct ImGuiContext | ||||
|     bool                    NavMousePosDirty; | ||||
|     bool                    NavDisableHighlight;                // When user starts using mouse, we hide gamepad/keyboard highlight (nb: but they are still available, which is why NavDisableHighlight isn't always != NavDisableMouseHover) | ||||
|     bool                    NavDisableMouseHover;               // When user starts using gamepad/keyboard, we hide mouse hovering highlight until mouse is touched again. | ||||
|     bool                    NavAnyRequest;                      // ~~ NavMoveRequest || NavInitDefaultRequest | ||||
|     bool                    NavInitDefaultRequest;              // Init request for appearing window to select first item | ||||
|     ImGuiID                 NavInitDefaultResultId; | ||||
|     ImRect                  NavInitDefaultResultRectRel; | ||||
| @@ -596,6 +597,7 @@ struct ImGuiContext | ||||
|         NavMousePosDirty = false; | ||||
|         NavDisableHighlight = true; | ||||
|         NavDisableMouseHover = false; | ||||
|         NavAnyRequest = false; | ||||
|         NavInitDefaultRequest = false; | ||||
|         NavInitDefaultResultId = 0; | ||||
|         NavInitDefaultResultExplicit = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user