X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcontrol%2Fcontroller.hpp;h=ac0030bd33798eeb18cb476dfcbbd4afa0d41501;hb=657fc40723665c04b3150946f5bd66b6b0af9230;hp=deeb8e639ea766f408c9d23161e7ed120b9c94d9;hpb=a5eb1a582bf8c975d12293d7e5199a365a7e191b;p=supertux.git diff --git a/src/control/controller.hpp b/src/control/controller.hpp index deeb8e639..ac0030bd3 100644 --- a/src/control/controller.hpp +++ b/src/control/controller.hpp @@ -24,20 +24,26 @@ class Controller { public: static const char* controlNames[]; - + enum Control { LEFT = 0, RIGHT, UP, DOWN, + JUMP, ACTION, + PAUSE_MENU, MENU_SELECT, + CONSOLE, + PEEK_LEFT, PEEK_RIGHT, - + PEEK_UP, + PEEK_DOWN, + CONTROLCOUNT }; @@ -48,7 +54,7 @@ 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 */ + /** returns true if the control has just been released this frame */ bool released(Control control); virtual void reset();