summaryrefslogtreecommitdiff
path: root/input.cpp
blob: caeae82c196fa2b1a8fce2230e4fc7b554f384da (plain)
1
2
3
4
5
6
7
8
9
10
#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);
}