17 #ifndef HEADER_SUPERTUX_CONTROL_MOBILE_CONTROLLER_HPP 18 #define HEADER_SUPERTUX_CONTROL_MOBILE_CONTROLLER_HPP 26 #include "math/rectf.hpp" 27 #include "math/vector.hpp" 28 #include "video/surface_ptr.hpp" 49 void activate_widget_at_pos(
float x,
float y);
52 bool m_up, m_down, m_left, m_right, m_jump, m_action, m_cheats, m_debug, m_escape;
53 bool m_old_up, m_old_down, m_old_left, m_old_right, m_old_jump, m_old_action, m_old_cheats, m_old_debug, m_old_escape;
55 std::map<SDL_FingerID, Vector> m_fingers;
57 Rectf m_rect_directions, m_rect_jump, m_rect_action, m_rect_cheats,
58 m_rect_debug, m_rect_escape;
59 Rectf m_draw_directions, m_draw_jump, m_draw_action, m_draw_cheats,
60 m_draw_debug, m_draw_escape;
61 const SurfacePtr m_tex_dirs, m_tex_btn, m_tex_btn_press, m_tex_pause,
62 m_tex_up, m_tex_dwn, m_tex_lft, m_tex_rgt,
63 m_tex_jump, m_tex_action, m_tex_cheats, m_tex_debug;
65 int m_screen_width, m_screen_height;
66 float m_mobile_controls_scale;
Definition: controller.hpp:57
bool process_finger_motion_event(const SDL_TouchFingerEvent &event)
returns true if the finger event was inside the screen button area
Definition: mobile_controller.cpp:252
bool process_finger_down_event(const SDL_TouchFingerEvent &event)
returns true if the finger event was inside the screen button area
Definition: mobile_controller.cpp:226
bool process_finger_up_event(const SDL_TouchFingerEvent &event)
returns true if the finger event was inside the screen button area
Definition: mobile_controller.cpp:239
Definition: mobile_controller.hpp:33
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42