Thanks for the quick response. I'm already using sf::input though, I initially checked the documentation and switched from checking window events to using sf::input, but for some reason it still behaves the same way. Here's the code:
void ProcessKeyboard(sf::Event Event)
{
const sf::Input& input = window.GetInput();
if (input.IsKeyDown(sf::Key::Escape))
window.Close();
//old code
//if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::W))
//{
// new code
if (input.IsKeyDown(sf::Key::W))
{
Am I missing something?
Thanks,
Stephen