22 #ifndef BACKEND_EVENTS_SDL_LEGACY_H 23 #define BACKEND_EVENTS_SDL_LEGACY_H 25 #include "backends/events/sdl/sdl-events.h" 36 void checkScreenChange();
48 int16 x_vel, y_vel, x_max, y_max, x_down_count, y_down_count, joy_x, joy_y;
49 uint32 last_time, delay_time, x_down_time, y_down_time;
54 virtual void updateKbdMouse();
59 bool handleMouseMotion(SDL_Event &ev,
Common::Event &event)
override;
60 bool handleMouseButtonDown(SDL_Event &ev,
Common::Event &event)
override;
61 bool handleMouseButtonUp(SDL_Event &ev,
Common::Event &event)
override;
62 bool handleJoyAxisMotion(SDL_Event &ev,
Common::Event &event)
override;
64 #if SDL_VERSION_ATLEAST(2, 0, 0) 65 bool handleControllerButton(
const SDL_Event &ev,
Common::Event &event,
bool buttonUp)
override;
66 bool handleControllerAxisMotion(
const SDL_Event &ev,
Common::Event &event)
override;
Definition: sdl-events.h:40
virtual bool handleAxisToMouseMotion(int16 xAxis, int16 yAxis)
Definition: legacy-sdl-events.h:46
void resetKeyboardEmulation(int16 x_max, int16 y_max)
int16 computeJoystickMouseSpeedFactor() const
Definition: legacy-sdl-events.h:30
bool pollEvent(Common::Event &event) override