X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FInput.cpp;h=b18ec6ee50e26740a88654a56fee5749ee73e320;hb=3b325285c15e47e75ad5c9db05f7105f8b5af387;hp=dde36593e7c4da1353735f9c49e436d8c5b7be42;hpb=8adc09e313ab2cec1ba28ac9a929b90880d9b2b1;p=lugaru.git diff --git a/Source/Input.cpp b/Source/Input.cpp index dde3659..b18ec6e 100644 --- a/Source/Input.cpp +++ b/Source/Input.cpp @@ -21,8 +21,6 @@ along with Lugaru. If not, see . /**> HEADER FILES <**/ #include "Input.h" -extern bool keyboardfrozen; - bool keyDown[SDL_NUM_SCANCODES + 6]; bool keyPressed[SDL_NUM_SCANCODES + 6]; @@ -44,14 +42,14 @@ void Input::Tick() bool Input::isKeyDown(int k) { - if (keyboardfrozen || k >= SDL_NUM_SCANCODES + 6) // really useful? check that. + if (k >= SDL_NUM_SCANCODES + 6) // really useful? check that. return false; return keyDown[k]; } bool Input::isKeyPressed(int k) { - if (keyboardfrozen || k >= SDL_NUM_SCANCODES + 6) + if (k >= SDL_NUM_SCANCODES + 6) return false; return keyPressed[k]; }