sfml

Getting the correct mouse position in SFML with OpenGL

My problem is related to getting the correct mouse co-ordinates from SFML while using OpenGL. Basically I am making a polygon rotate on the Z axis to look at the current cursor position. You can also move the polygon around the screen with the WASD keys. If the polygon stays in the center of the screen everything works great, but my p...