// SuperTux - A Jump'n Run
-// Copyright (C) 2004 Ingo Ruhnke <grumbel@gmx.de>
+// Copyright (C) 2004 Ingo Ruhnke <grumbel@gmail.com>
// Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
//
// This program is free software: you can redistribute it and/or modify
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "control/joystickkeyboardcontroller.hpp"
+#include "control/input_manager.hpp"
#include "scripting/squirrel_util.hpp"
#include "sprite/sprite.hpp"
#include "sprite/sprite_manager.hpp"
void
Tux::updateInputDirection()
{
- Controller *controller = g_jk_controller->get_main_controller();
+ Controller* controller = g_input_manager->get_controller();
if(controller->hold(Controller::UP))
input_direction = D_NORTH;
else if(controller->hold(Controller::DOWN))