Hello guys
First of all I did go and search before i post this topic and i found a lot of posts about this topic but my problem is a bit wired.
My window is 800, 600 and when i print the mouse coordinates i get x from -500 to 1300 and Y from -200 to 800.
how can i make the lowest value for x 0 and biggest 800 and for y 0 and 600?
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
#include <string>
#include <iostream>
#pragma comment(lib, "sfml-window-d.lib")
#pragma comment(lib, "sfml-graphics-d.lib")
#pragma comment(lib, "sfml-system-d.lib")
int main()
{
sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "HI");
while(Window.IsOpen())
{
std::cout<<sf::Mouse::GetPosition(Window).x << " ";
std::cout<<sf::Mouse::GetPosition(Window).y << "\n";
Window.Clear();
Window.Display();
}
return 0;
}