diff --git a/backends/platform/gp2x/events.cpp b/backends/platform/gp2x/events.cpp index e0117e9313b..060150cc78b 100644 --- a/backends/platform/gp2x/events.cpp +++ b/backends/platform/gp2x/events.cpp @@ -572,7 +572,7 @@ bool OSystem_GP2X::pollEvent(Common::Event &event) { return false; } -bool OSystem_GP2X::remapKey(SDL_Event &ev,Common::Event &event) { +bool OSystem_GP2X::remapKey(const SDL_Event &ev,Common::Event &event) { return false; } diff --git a/backends/platform/gp2x/gp2x-common.h b/backends/platform/gp2x/gp2x-common.h index 6878673024e..12cf9fddb6d 100644 --- a/backends/platform/gp2x/gp2x-common.h +++ b/backends/platform/gp2x/gp2x-common.h @@ -410,7 +410,7 @@ protected: void setupIcon(); void handleKbdMouse(); - virtual bool remapKey(SDL_Event &ev, Common::Event &event); + virtual bool remapKey(const SDL_Event &ev, Common::Event &event); void handleScalerHotkeys(const SDL_KeyboardEvent &key); diff --git a/backends/platform/gp2xwiz/gp2xwiz-events.cpp b/backends/platform/gp2xwiz/gp2xwiz-events.cpp index 2774efce1b1..f5341a022ea 100644 --- a/backends/platform/gp2xwiz/gp2xwiz-events.cpp +++ b/backends/platform/gp2xwiz/gp2xwiz-events.cpp @@ -494,6 +494,6 @@ bool OSystem_GP2XWIZ::pollEvent(Common::Event &event) { return false; } -bool OSystem_GP2XWIZ::remapKey(SDL_Event &ev,Common::Event &event) { +bool OSystem_GP2XWIZ::remapKey(const SDL_Event &ev,Common::Event &event) { return false; } diff --git a/backends/platform/gp2xwiz/gp2xwiz-sdl.h b/backends/platform/gp2xwiz/gp2xwiz-sdl.h index 1f67624d5c3..ace11d05461 100644 --- a/backends/platform/gp2xwiz/gp2xwiz-sdl.h +++ b/backends/platform/gp2xwiz/gp2xwiz-sdl.h @@ -61,7 +61,7 @@ public: void moveStick(); void fillMouseEvent(Common::Event&, int, int); void warpMouse(int, int); - bool remapKey(SDL_Event&, Common::Event&); + bool remapKey(const SDL_Event&, Common::Event&); /* Platform Setup Stuff */ void addSysArchivesToSearchSet(Common::SearchSet &s, int priority); diff --git a/backends/platform/linuxmoto/linuxmoto-events.cpp b/backends/platform/linuxmoto/linuxmoto-events.cpp index 50daa12d5b1..f11bd8a636c 100644 --- a/backends/platform/linuxmoto/linuxmoto-events.cpp +++ b/backends/platform/linuxmoto/linuxmoto-events.cpp @@ -65,7 +65,7 @@ void OSystem_LINUXMOTO::fillMouseEvent(Common::Event &event, int x, int y) { } } -bool OSystem_LINUXMOTO::remapKey(SDL_Event &ev, Common::Event &event) { +bool OSystem_LINUXMOTO::remapKey(const SDL_Event &ev, Common::Event &event) { // Motorol A1200/E6/A1600 remapkey by Lubomyr #ifdef MOTOEZX // Quit on MOD+Camera Key on A1200 diff --git a/backends/platform/linuxmoto/linuxmoto-sdl.h b/backends/platform/linuxmoto/linuxmoto-sdl.h index 57d1dc89729..9d4fe28d2ef 100644 --- a/backends/platform/linuxmoto/linuxmoto-sdl.h +++ b/backends/platform/linuxmoto/linuxmoto-sdl.h @@ -50,7 +50,7 @@ public: void hideOverlay(); /* Event Stuff */ - virtual bool remapKey(SDL_Event &ev, Common::Event &event); + virtual bool remapKey(const SDL_Event &ev, Common::Event &event); virtual void preprocessEvents(SDL_Event *event); virtual void setupMixer(); virtual Common::HardwareKeySet *getHardwareKeySet(); diff --git a/backends/platform/samsungtv/events.cpp b/backends/platform/samsungtv/events.cpp index 9d67272dce7..49d3f6d3ea6 100644 --- a/backends/platform/samsungtv/events.cpp +++ b/backends/platform/samsungtv/events.cpp @@ -351,7 +351,7 @@ bool OSystem_SDL_SamsungTV::pollEvent(Common::Event &event) { return false; } -bool OSystem_SDL_SamsungTV::remapKey(SDL_Event &ev, Common::Event &event) { +bool OSystem_SDL_SamsungTV::remapKey(const SDL_Event &ev, Common::Event &event) { return false; } diff --git a/backends/platform/samsungtv/sdl.h b/backends/platform/samsungtv/sdl.h index 3b81bba7f52..9d55e5d1710 100644 --- a/backends/platform/samsungtv/sdl.h +++ b/backends/platform/samsungtv/sdl.h @@ -426,7 +426,7 @@ protected: void setupIcon(); void handleKbdMouse(); - virtual bool remapKey(SDL_Event &ev, Common::Event &event); + virtual bool remapKey(const SDL_Event &ev, Common::Event &event); void handleScalerHotkeys(const SDL_KeyboardEvent &key); }; diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp index e6c8d716e3c..e5d0c1687ce 100644 --- a/backends/platform/sdl/events.cpp +++ b/backends/platform/sdl/events.cpp @@ -459,7 +459,7 @@ bool OSystem_SDL::pollEvent(Common::Event &event) { return false; } -bool OSystem_SDL::remapKey(SDL_Event &ev, Common::Event &event) { +bool OSystem_SDL::remapKey(const SDL_Event &ev, Common::Event &event) { #ifdef LINUPY // On Yopy map the End button to quit if ((ev.key.keysym.sym == 293)) { diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h index fd9c1f72fdc..e76d68766ce 100644 --- a/backends/platform/sdl/sdl.h +++ b/backends/platform/sdl/sdl.h @@ -467,7 +467,7 @@ protected: void setupIcon(); void handleKbdMouse(); - virtual bool remapKey(SDL_Event &ev, Common::Event &event); + virtual bool remapKey(const SDL_Event &ev, Common::Event &event); void handleScalerHotkeys(const SDL_KeyboardEvent &key); }; diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index fcdc22db516..d58aed23460 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -318,7 +318,7 @@ void OSystem_SDL_Symbian::symbianMixCallback(void *sys, byte *samples, int len) * @param ScumVM event to modify if special result is requested * @return true if Common::Event has a valid return status */ -bool OSystem_SDL_Symbian::remapKey(SDL_Event &ev, Common::Event &event) { +bool OSystem_SDL_Symbian::remapKey(const SDL_Event &ev, Common::Event &event) { if (GUI::Actions::Instance()->mappingActive() || ev.key.keysym.sym <= SDLK_UNKNOWN) return false; diff --git a/backends/platform/symbian/src/SymbianOS.h b/backends/platform/symbian/src/SymbianOS.h index b873b503beb..43ed1513023 100644 --- a/backends/platform/symbian/src/SymbianOS.h +++ b/backends/platform/symbian/src/SymbianOS.h @@ -103,7 +103,7 @@ protected: // @param ScumVM event to modify if special result is requested // @return true if Common::Event has a valid return status // - bool remapKey(SDL_Event &ev, Common::Event &event); + bool remapKey(const SDL_Event &ev, Common::Event &event); void setWindowCaption(const char *caption);