X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcontrol%2Fcontroller.hpp;h=ac0030bd33798eeb18cb476dfcbbd4afa0d41501;hb=657fc40723665c04b3150946f5bd66b6b0af9230;hp=37dfa9f8bcb1417a2381c4416932db79916115fd;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/control/controller.hpp b/src/control/controller.hpp index 37dfa9f8b..ac0030bd3 100644 --- a/src/control/controller.hpp +++ b/src/control/controller.hpp @@ -24,18 +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 }; @@ -46,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();