Thanks Elias, i have integrated your code with my program, all work fine.
But, i have a question, for sure, you have resolved it before, i need to create a small tile editor, i need to ignore
the mouse click when i am inside an imgui window, when i choose some options in my window, some tile will be pasted on the map...
i try this code, but that's doesnt work :
if (sf::Mouse::isButtonPressed(sf::Mouse::Left) && mSelectedTile != -1 && !ImGui::IsWindowHovered())
...
what is the trick ?
thanks.