mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Backends: Allegro: Don't call AddInputCharacter if the pressed key has no character. (#3252)
This commit is contained in:
		@@ -357,6 +357,7 @@ bool ImGui_ImplAllegro5_ProcessEvent(ALLEGRO_EVENT *ev)
 | 
				
			|||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    case ALLEGRO_EVENT_KEY_CHAR:
 | 
					    case ALLEGRO_EVENT_KEY_CHAR:
 | 
				
			||||||
        if (ev->keyboard.display == g_Display)
 | 
					        if (ev->keyboard.display == g_Display)
 | 
				
			||||||
 | 
					            if (ev->keyboard.unichar != 0)
 | 
				
			||||||
                io.AddInputCharacter((unsigned int)ev->keyboard.unichar);
 | 
					                io.AddInputCharacter((unsigned int)ev->keyboard.unichar);
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    case ALLEGRO_EVENT_KEY_DOWN:
 | 
					    case ALLEGRO_EVENT_KEY_DOWN:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user