diff options
author | Jonathan Gray | 2003-01-22 13:15:03 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-01-22 13:15:03 +0000 |
commit | c1930e0ff52af45366060881edb085cc3b9fdb4c (patch) | |
tree | eb731b7c7c0ddb1b0532aa56c376ec82951aa6d5 /backends | |
parent | 324e2cb2e8658ab7ebc9338a19391d527f92af0e (diff) | |
download | scummvm-rg350-c1930e0ff52af45366060881edb085cc3b9fdb4c.tar.gz scummvm-rg350-c1930e0ff52af45366060881edb085cc3b9fdb4c.tar.bz2 scummvm-rg350-c1930e0ff52af45366060881edb085cc3b9fdb4c.zip |
declare event of type mouse motion on joystick axis movement
svn-id: r6535
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; |