X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclient%2Finputhandler.h;h=766cd5266974c8dd932eb72b91a7e26e3c1748ca;hb=946f3030fc0728de15620896e08ed7e10696c11b;hp=b3a7d4ba3b501e3477caa04d5a9aebdec73b8ac9;hpb=7250cf2c1c29b685b8ac3552c296f11c8178b0a0;p=dragonfireclient.git diff --git a/src/client/inputhandler.h b/src/client/inputhandler.h index b3a7d4ba3..766cd5266 100644 --- a/src/client/inputhandler.h +++ b/src/client/inputhandler.h @@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #endif class InputHandler; +class TouchScreenGUI; /**************************************************************************** Fast key cache for main game loop @@ -289,7 +290,7 @@ class RealInputHandler : public InputHandler } virtual bool wasKeyPressed(GameKeyType k) { - return m_receiver->WasKeyPressed(keycache.key[k]) || joystick.wasKeyReleased(k); + return m_receiver->WasKeyPressed(keycache.key[k]) || joystick.wasKeyPressed(k); } virtual bool wasKeyReleased(GameKeyType k) {