mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-30 20:21:56 +00:00 
			
		
		
		
	 9bd205a527
			
		
	
	9bd205a527
	
	
	
		
			
			imgui really hates it when we update the modifier key state after igNewFrame.
The result is:
    void ImGui::ErrorCheckEndFrameSanityChecks(): Assertion
    `(key_mod_flags == 0 || g.IO.KeyMods == key_mod_flags) &&
    "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"'
    failed.
Therefore, we buffer the modifier state information and update it in the IO
object right before we call igNewFrame.