Replaced Ref and RefCounter with std::shared_ptr<>
[supertux.git] / src / control / joystick_manager.cpp
index ebc164c..c0d4196 100644 (file)
@@ -221,9 +221,15 @@ JoystickManager::process_button_event(const SDL_JoyButtonEvent& jbutton)
 }
 
 void
+JoystickManager::bind_next_event_to(Controller::Control id)
+{
+  wait_for_joystick = id;
+}
+
+void
 JoystickManager::set_joy_controls(Controller::Control id, bool value)
 {
-  if (m_joystick_config.jump_with_up_joy && 
+  if (m_joystick_config.jump_with_up_joy &&
       id == Controller::UP)
   {
     parent->get_controller()->set_control(Controller::JUMP, value);