imgui-sfml
imgui-sfml copied to clipboard
Mouse cursor position on startup is (0, 0) until moved
The mouse isn't moved on startup, the position remains 0, 0. (Has consequences if you have an interactive object on that spot, before the mouse is moved)
Can be fixed by adding the following in imgui-SFML.cpp::Init()
s_touchPos = sf::Mouse::getPosition(window);
Hello
Please check out this branch and see if it fixes the problem:
https://github.com/eliasdaler/imgui-sfml/tree/fix-init-mouse-pos
Closing as outdated. Feel free to re-open if someone stumbles upon this one again.