Split Controller::PAUSE_MENU into ESCAPE and START, as they need to act different...
[supertux.git] / src / supertux / game_session.cpp
index ce95ed4..9c06460 100644 (file)
@@ -419,7 +419,8 @@ void
 GameSession::update(float elapsed_time)
 {
   // handle controller
-  if(InputManager::current()->get_controller()->pressed(Controller::PAUSE_MENU))
+  if(InputManager::current()->get_controller()->pressed(Controller::ESCAPE) ||
+     InputManager::current()->get_controller()->pressed(Controller::START))
   {
     on_escape_press();
   }