Turned AddonManager into a Currenton
[supertux.git] / src / supertux / menu / joystick_menu.hpp
index b4e7fd0..196abe6 100644 (file)
@@ -1,6 +1,6 @@
 //  SuperTux
 //  Copyright (C) 2006 Matthias Braun <matze@braunis.de>,
-//                2007 Ingo Ruhnke <grumbel@gmx.de>
+//                2007 Ingo Ruhnke <grumbel@gmail.com>
 //
 //  This program is free software: you can redistribute it and/or modify
 //  it under the terms of the GNU General Public License as published by
 class JoystickMenu : public Menu
 {
 public:
-  JoystickMenu(InputManager* input_manager);
+  JoystickMenu(InputManager& input_manager);
   virtual ~JoystickMenu();
 
-  void update();
+  void refresh();
+  void refresh_menu_item(Controller::Control id);
+
   std::string get_button_name(int button);
-  void update_menu_item(Controller::Control id);
-  virtual void menu_action(MenuItem* item);
-  void check_menu() {}
+  void menu_action(MenuItem* item) override;
 
 private:
   void recreate_menu();
 
 private:
-  InputManager* m_input_manager;
+  InputManager& m_input_manager;
   bool m_joysticks_available;
 
 private: