src/supertux/menu/joystick_menu.hpp

Go to the documentation of this file.
00001 //  SuperTux
00002 //  Copyright (C) 2006 Matthias Braun <matze@braunis.de>,
00003 //                2007 Ingo Ruhnke <grumbel@gmx.de>
00004 //
00005 //  This program is free software: you can redistribute it and/or modify
00006 //  it under the terms of the GNU General Public License as published by
00007 //  the Free Software Foundation, either version 3 of the License, or
00008 //  (at your option) any later version.
00009 //
00010 //  This program is distributed in the hope that it will be useful,
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //  GNU General Public License for more details.
00014 //
00015 //  You should have received a copy of the GNU General Public License
00016 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 
00018 #ifndef HEADER_SUPERTUX_CONTROL_JOYSTICK_MENU_HPP
00019 #define HEADER_SUPERTUX_CONTROL_JOYSTICK_MENU_HPP
00020 
00021 #include "control/joystickkeyboardcontroller.hpp"
00022 #include "gui/menu_item.hpp"
00023 
00024 class JoystickMenu : public Menu
00025 {
00026 public:
00027   JoystickMenu(JoystickKeyboardController* controller);
00028   virtual ~JoystickMenu();
00029 
00030   void update();
00031   std::string get_button_name(int button);
00032   void update_menu_item(Controller::Control id);
00033   virtual void menu_action(MenuItem* item);
00034   JoystickKeyboardController* controller;
00035   void check_menu() {}
00036 
00037 private:
00038   void recreateMenu();
00039 
00040 private:
00041   JoystickMenu(const JoystickMenu&);
00042   JoystickMenu& operator=(const JoystickMenu&);
00043 };
00044 
00045 #endif
00046 
00047 /* EOF */

Generated on Mon Jun 9 03:38:22 2014 for SuperTux by  doxygen 1.5.1