X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcontrol%2Fcontroller.hpp;h=026ec2af120e41d41b92e90650e4e1271ab3c470;hb=f3e5e57c9996168a4889ae8e195be25f8b7e629b;hp=50cdb17f12b7b968f32f89c32b2f794a1fab1389;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/control/controller.hpp b/src/control/controller.hpp index 50cdb17f1..026ec2af1 100644 --- a/src/control/controller.hpp +++ b/src/control/controller.hpp @@ -35,6 +35,7 @@ public: ACTION, PAUSE_MENU, MENU_SELECT, + CONSOLE, CONTROLCOUNT }; @@ -46,6 +47,8 @@ public: bool hold(Control control); /** returns true if the control has just been pressed down this frame */ bool pressed(Control control); + /** returns true if the control has just been released this frame */ + bool released(Control control); virtual void reset(); virtual void update();