diff options
Diffstat (limited to 'input.cpp')
| -rw-r--r-- | input.cpp | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/input.cpp b/input.cpp new file mode 100644 index 0000000..caeae82 --- /dev/null +++ b/input.cpp @@ -0,0 +1,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); +} | 
