diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index 6e7882db7e..2c62bfddee 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -666,7 +666,9 @@ bool OSystem_SDL_Common::poll_event(Event *event) { return true; case SDL_JOYAXISMOTION: - if ( ev.jaxis.axis == 0) { + event->event_code = EVENT_MOUSEMOVE; + + if ( ev.jaxis.axis == 0) { if (ev.jaxis.value < -3200) { // left km.x_vel = -1; km.x_down_count = 1; |