mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Added CaptureInputsFromApp() to manually enforce e.g. keyboard capturing
This commit is contained in:
		
							
								
								
									
										3
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -382,9 +382,10 @@ namespace ImGui | ||||
|     IMGUI_API bool          IsMouseDragging(int button = 0, float lock_threshold = -1.0f);      // is mouse dragging. if lock_threshold < -1.0f uses io.MouseDraggingThreshold | ||||
|     IMGUI_API ImVec2        GetMousePos();                                                      // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls | ||||
|     IMGUI_API ImVec2        GetMouseDragDelta(int button = 0, float lock_threshold = -1.0f);    // dragging amount since clicking, also see: GetItemActiveDragDelta(). if lock_threshold < -1.0f uses io.MouseDraggingThreshold | ||||
|     IMGUI_API void          ResetMouseDragDelta(int button = 0); | ||||
|     IMGUI_API void          ResetMouseDragDelta(int button = 0);                                //  | ||||
|     IMGUI_API ImGuiMouseCursor GetMouseCursor();                                                // get desired cursor type, reset in ImGui::NewFrame(), this updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you | ||||
|     IMGUI_API void          SetMouseCursor(ImGuiMouseCursor type);                              // set desired cursor type | ||||
|     IMGUI_API void          CaptureInputsFromApp(bool mouse = true, bool keyboard = true);      // manually enforce imgui setting the io.WantCaptureMouse / io.WantCaptureKeyboard flags next frame (your application needs to handle them). e.g. capture keyboard when your widget is being hovered. | ||||
|  | ||||
|     // Helpers functions to access the MemAllocFn/MemFreeFn pointers in ImGui::GetIO() | ||||
|     IMGUI_API void*         MemAlloc(size_t sz); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user