#include "input.h" const sf::Input* input_backend = 0; bool Input::key_pressed(Key::Code key) { if(!input_backend) { return false; } return input_backend->IsKeyDown(key); }