mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Added configurable io.KeyRepeatDelay, io.KeyRepeatRate
This commit is contained in:
		
							
								
								
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -603,6 +603,8 @@ struct ImGuiIO | ||||
|     float         MouseDoubleClickMaxDist;  // = 6.0f               // Distance threshold to stay in to validate a double-click, in pixels. | ||||
|     float         MouseDragThreshold;       // = 6.0f               // Distance threshold before considering we are dragging | ||||
|     int           KeyMap[ImGuiKey_COUNT];   // <unset>              // Map of indices into the KeysDown[512] entries array | ||||
|     float         KeyRepeatDelay;           // = 0.250f             // When holding a key/button, time before it starts repeating, in seconds. (for actions where 'repeat' is active) | ||||
|     float         KeyRepeatRate;            // = 0.020f             // When holding a key/button, rate at which it repeats, in seconds. | ||||
|     void*         UserData;                 // = NULL               // Store your own data for retrieval by callbacks. | ||||
|  | ||||
|     ImFontAtlas*  Fonts;                    // <auto>               // Load and assemble one or more fonts into a single tightly packed texture. Output to Fonts array. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user