// 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* controller);
+ 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 recreateMenu();
+ void recreate_menu();
private:
- InputManager* controller;
- bool joysticks_available;
+ InputManager& m_input_manager;
+ bool m_joysticks_available;
private:
JoystickMenu(const JoystickMenu&);