diff options
author | Max Horn | 2004-12-18 16:38:44 +0000 |
---|---|---|
committer | Max Horn | 2004-12-18 16:38:44 +0000 |
commit | 4b632e66ae3330b03799dc2b712a4c290896a03e (patch) | |
tree | 5eec9c917a8828075c816f1fa7e156403610a648 | |
parent | 1724d009628f169ccb9bbfc94bd72e5301169fc8 (diff) | |
download | scummvm-rg350-4b632e66ae3330b03799dc2b712a4c290896a03e.tar.gz scummvm-rg350-4b632e66ae3330b03799dc2b712a4c290896a03e.tar.bz2 scummvm-rg350-4b632e66ae3330b03799dc2b712a4c290896a03e.zip |
Disable mouse emulation code
svn-id: r16120
-rw-r--r-- | backends/sdl/events.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/sdl/events.cpp b/backends/sdl/events.cpp index ca223f51b3..6749da9adf 100644 --- a/backends/sdl/events.cpp +++ b/backends/sdl/events.cpp @@ -387,7 +387,10 @@ bool OSystem_SDL::pollEvent(Event &event) { event.kbd.keycode = ev.key.keysym.sym; event.kbd.ascii = mapKey(ev.key.keysym.sym, ev.key.keysym.mod, ev.key.keysym.unicode); #endif - + +/* Disabled mouse emulation code (fingolfin, 2004-12-18). + I am keeping the rest of the code in for now, since the joystick + code (or rather, "hack") uses it, too. switch(ev.key.keysym.sym) { case SDLK_LEFT: _km.x_vel = -1; @@ -408,7 +411,7 @@ bool OSystem_SDL::pollEvent(Event &event) { default: break; } - +*/ return true; case SDL_KEYUP: @@ -416,6 +419,7 @@ bool OSystem_SDL::pollEvent(Event &event) { event.kbd.keycode = ev.key.keysym.sym; event.kbd.ascii = mapKey(ev.key.keysym.sym, ev.key.keysym.mod, ev.key.keysym.unicode); +/* switch(ev.key.keysym.sym) { case SDLK_LEFT: if (_km.x_vel < 0) { @@ -444,6 +448,7 @@ bool OSystem_SDL::pollEvent(Event &event) { default: break; } +*/ return true; case SDL_MOUSEMOTION: |