diff options
author | Max Horn | 2009-11-09 23:58:12 +0000 |
---|---|---|
committer | Max Horn | 2009-11-09 23:58:12 +0000 |
commit | 1f37da26263d137397f8787500d771dca0d460fe (patch) | |
tree | e53817c7d7a7e7e8692c847ecd9681544b2abe6c /backends/platform/sdl/events.cpp | |
parent | d6d2c5d7b83027c21f8e00d364c925ca5f45c392 (diff) | |
download | scummvm-rg350-1f37da26263d137397f8787500d771dca0d460fe.tar.gz scummvm-rg350-1f37da26263d137397f8787500d771dca0d460fe.tar.bz2 scummvm-rg350-1f37da26263d137397f8787500d771dca0d460fe.zip |
Revert rev 45791 and make the first param of OSystem_SDL::remapKey again non-const (as it may have to be modified for remapping. Of course. Silly me :/)
svn-id: r45796
Diffstat (limited to 'backends/platform/sdl/events.cpp')
-rw-r--r-- | backends/platform/sdl/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp index a20e0b4387..505d79000a 100644 --- a/backends/platform/sdl/events.cpp +++ b/backends/platform/sdl/events.cpp @@ -315,7 +315,7 @@ bool OSystem_SDL::handleKeyDown(const SDL_Event &ev, Common::Event &event) { bool OSystem_SDL::handleKeyUp(const SDL_Event &ev, Common::Event &event) { byte b = 0; - const bool event_complete = remapKey(ev,event); + const bool event_complete = remapKey(ev, event); if (event_complete) return true; @@ -491,7 +491,7 @@ bool OSystem_SDL::handleJoyAxisMotion(const SDL_Event &ev, Common::Event &event) return true; } -bool OSystem_SDL::remapKey(const SDL_Event &ev, Common::Event &event) { +bool OSystem_SDL::remapKey(SDL_Event &ev, Common::Event &event) { #ifdef LINUPY // On Yopy map the End button to quit if ((ev.key.keysym.sym == 293)) { |