Hi guys, what am I doing wrong?
switch(Event.KeyEvent.Code)
{
case sf::Key::Code::Num1:
{
SelectedColor=Black;
break;
}
case sf::Key::Code::Num2:
{
SelectedColor=Blue;
break;
}
}
compiles with this error:
invalid use of ‘struct sf::Event::KeyEvent’
The Event object is obviously sf::Event Event..