Alright, so I'm making a tic-tac-toe game. I want to make it so that if the user clicks the upper left-hand corner of the screen, a 'X' appears. I am trying to use the following code:
while (App.GetEvent(Event))
{
unsigned int MouseX = Input.GetMouseX(); // Error 1
unsigned int MouseY = Input.GetMouseY(); // Error 2
bool LeftButtonDown = Input.IsMouseButtonDown(sf::Mouse::Left); //Error 3
if ((LeftButtonDown == true) && (MouseX << 50) && (MouseY << 50))
{
SprCross1.SetPosition(25.f, 25.f);
X1 = 1;
}
}
When I try to compile I get three errors saying "error: expected primary-expression before '.' token". What is the problem? I am following the tutorial's example exactly. Oh, and yes, I did put "using sf::Input" at the beginning of the program. I am using GCC, Linux Ubuntu, and C++.