imgui-sfml icon indicating copy to clipboard operation
imgui-sfml copied to clipboard

Mouse cursor position on startup is (0, 0) until moved

Open ShavitGH opened this issue 4 years ago • 1 comments

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);

ShavitGH avatar May 11 '21 03:05 ShavitGH

Hello

Please check out this branch and see if it fixes the problem:

https://github.com/eliasdaler/imgui-sfml/tree/fix-init-mouse-pos

eliasdaler avatar May 18 '21 19:05 eliasdaler

Closing as outdated. Feel free to re-open if someone stumbles upon this one again.

eliasdaler avatar Nov 30 '22 11:11 eliasdaler