diff options
Diffstat (limited to '')
-rw-r--r-- | src/client/inputhandler.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/inputhandler.h b/src/client/inputhandler.h index 76e3c7b5b..e630b860e 100644 --- a/src/client/inputhandler.h +++ b/src/client/inputhandler.h @@ -393,8 +393,8 @@ public: virtual bool wasKeyPressed(GameKeyType k) { return false; } virtual bool wasKeyReleased(GameKeyType k) { return false; } virtual bool cancelPressed() { return false; } - virtual float getMovementSpeed() {return 0.0f;} - virtual float getMovementDirection() {return 0.0f;} + virtual float getMovementSpeed() { return movementSpeed; } + virtual float getMovementDirection() { return movementDirection; } virtual v2s32 getMousePos() { return mousepos; } virtual void setMousePos(s32 x, s32 y) { mousepos = v2s32(x, y); } @@ -408,4 +408,6 @@ private: KeyList keydown; v2s32 mousepos; v2s32 mousespeed; + float movementSpeed; + float movementDirection; }; |