X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcontrol%2Fjoystickkeyboardcontroller.hpp;h=f989ea6f64a543418e2ab78697fa3f27feb7ae8d;hb=b029182b66e1f36e8eb7a1d8d23d26d475dec45f;hp=19e2a652c43f9e8471637ab295db670962384f91;hpb=4c81a726fd4c158ad311c237f3a6bf5cb3511e23;p=supertux.git diff --git a/src/control/joystickkeyboardcontroller.hpp b/src/control/joystickkeyboardcontroller.hpp index 19e2a652c..f989ea6f6 100644 --- a/src/control/joystickkeyboardcontroller.hpp +++ b/src/control/joystickkeyboardcontroller.hpp @@ -21,11 +21,17 @@ #define __JOYSTICKKEYBOARDCONTROLLER_H__ #include "controller.hpp" -#include "lisp/lisp.hpp" -#include "lisp/writer.hpp" + +namespace lisp { +class Writer; +class Lisp; +} + #include + #include #include +#include class Menu; @@ -45,6 +51,7 @@ public: Menu* get_key_options_menu(); Menu* get_joystick_options_menu(); + void updateAvailableJoysticks(); private: void process_key_event(const SDL_Event& event); @@ -84,8 +91,8 @@ private: Uint8 hat_state; - bool jump_with_up; // Joystick up jumps - bool jump_with_up_key; // Keyboard up jumps + bool jump_with_up_joy; // Joystick up jumps + bool jump_with_up_kbd; // Keyboard up jumps SDLKey reversemap_key(Control c); int reversemap_joybutton(Control c);