Yet another Console commit /
[supertux.git] / src / control / controller.cpp
index 73f93af..e7fe383 100644 (file)
@@ -33,6 +33,7 @@ const char* Controller::controlNames[] = {
   "action",
   "pause-menu",
   "menu-select",
+  "console",
   0
 };
 
@@ -65,6 +66,12 @@ Controller::pressed(Control control)
   return oldControls[control] == false && controls[control] == true;
 }
 
+bool
+Controller::released(Control control)
+{
+  return oldControls[control] == true && controls[control] == false;
+}
+
 void
 Controller::update()
 {