When SFML 2.3 came out, I updated my project to that version, and everything worked well (or was it?
).
A week or so has passed after I updated my game and I decided to test the release version of it. The mouse button pressed event didn't work, and I didn't have a clue why.
The very first thing I checked was the include\libraries path in the properties section of my project, following the SFML tutorials for Visual Studio. Everything seemed to be in order. After that I again copied-pasted the 2.3 DLLs, but they were not a problem.
After messing around with std::cout (because breakpoints and assertions does not work in release mode), and on another dummy project updated from 2.2 to 2.3 version (in which I made the
same mistake!), I figured that each time I press a button, a mouse button released event is generated! I then preformed a couple of checks and found out that SFML Debug and Release modes are not compatible.
And in typical C++ noob programmer manner, I convinced myself that I found a bug in SFML!!!
I already made the complete and minimal example (in the same project), and was ready to post it on forums.
But then I decided to take one last check on project properties before I do post on forums, and guess what? The Release mod paths still pointed to the 2.2 includes and libraries.
So you could say that last check saved me from embarrassing myself on the forums.
After fixing that, everything worked as intended.