X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcontrol%2Fcontroller.hpp;h=ab9decd619e83eaaa6f2e747c3b3c5bf98d46f93;hb=84c71f11f1e47729777d6ad783f4d30b5894d7bc;hp=8d8543e6a65fd427a987b6562ab31d55f720e6f0;hpb=1f40c3162dad16f31085234080f5fad3c4d7a8c7;p=supertux.git diff --git a/src/control/controller.hpp b/src/control/controller.hpp index 8d8543e6a..ab9decd61 100644 --- a/src/control/controller.hpp +++ b/src/control/controller.hpp @@ -51,11 +51,11 @@ public: void set_control(Control control, bool value); /** returns true if the control is pressed down */ - bool hold(Control control); + bool hold(Control control) const; /** returns true if the control has just been pressed down this frame */ - bool pressed(Control control); + bool pressed(Control control) const; /** returns true if the control has just been released this frame */ - bool released(Control control); + bool released(Control control) const; virtual void reset(); virtual void update();