X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fmenu%2Fkeyboard_menu.hpp;h=3230f3422e07b1bcd548535b5fdaae56526d183b;hb=24eeaf3d9b6cda74bd5c8ba228776573167978b6;hp=b09c4061cac86eedce99c806d818ae265c8ffc8e;hpb=b4ffa23e2beb6d10f8f5f2fccd4b41fb3e344759;p=supertux.git diff --git a/src/supertux/menu/keyboard_menu.hpp b/src/supertux/menu/keyboard_menu.hpp index b09c4061c..3230f3422 100644 --- a/src/supertux/menu/keyboard_menu.hpp +++ b/src/supertux/menu/keyboard_menu.hpp @@ -1,6 +1,6 @@ // SuperTux // Copyright (C) 2006 Matthias Braun , -// 2007 Ingo Ruhnke +// 2007 Ingo Ruhnke // // 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 @@ -18,20 +18,22 @@ #ifndef HEADER_SUPERTUX_CONTROL_KEYBOARD_MENU_HPP #define HEADER_SUPERTUX_CONTROL_KEYBOARD_MENU_HPP -#include "control/joystickkeyboardcontroller.hpp" +#include "control/input_manager.hpp" #include "gui/menu_item.hpp" class KeyboardMenu : public Menu { +private: + InputManager& m_input_manager; + public: - KeyboardMenu(JoystickKeyboardController* controller); + KeyboardMenu(InputManager& input_manager); ~KeyboardMenu(); - void update(); + void refresh(); std::string get_key_name(SDL_Keycode key); - virtual void menu_action(MenuItem* item); - JoystickKeyboardController* controller; - void check_menu() {} + void menu_action(MenuItem* item) override; + private: KeyboardMenu(const KeyboardMenu&); KeyboardMenu& operator=(const KeyboardMenu&);