It seems that there are some great differences between the version he's using and the RC, most of the problems so far I've been able to solve, but now I've hit a wall.
He uses a switch to get handle Events, and he has a piece of code that's like this:
1 2 3 4 5 6 7 8 9 10
while(Window.pollEvent(Event))
{
switch(Event.type)
{
case sf::Event::Keypressed:
std::cout << "A key was pressed." << std::endl;
if(Event.Key.Code == sf::Key::Back)
std::cout << "Backspace was pressed." << std::endl;
}
}
The problem I'm facing is that neither Event.Key.Code nor sf::Key::Back exists anymore, so I can't register what key is being pressed. I have the same problem with registering individual mouse buttons.
Checking the SFML 2 Documentation would have solved your problem. Replace Event.Key.Code with : Event.key.code and replace sf::Key::Back with sf::Keyboard::Back.