aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/gp2x/events.cpp2
-rw-r--r--backends/platform/gp2x/gp2x-common.h2
-rw-r--r--backends/platform/gp2xwiz/gp2xwiz-events.cpp2
-rw-r--r--backends/platform/gp2xwiz/gp2xwiz-sdl.h2
-rw-r--r--backends/platform/linuxmoto/linuxmoto-events.cpp2
-rw-r--r--backends/platform/linuxmoto/linuxmoto-sdl.h2
-rw-r--r--backends/platform/samsungtv/events.cpp2
-rw-r--r--backends/platform/samsungtv/sdl.h2
-rw-r--r--backends/platform/sdl/events.cpp2
-rw-r--r--backends/platform/sdl/sdl.h2
-rw-r--r--backends/platform/symbian/src/SymbianOS.cpp2
-rw-r--r--backends/platform/symbian/src/SymbianOS.h2
12 files changed, 12 insertions, 12 deletions
diff --git a/backends/platform/gp2x/events.cpp b/backends/platform/gp2x/events.cpp
index e0117e9313..060150cc78 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 6878673024..12cf9fddb6 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 2774efce1b..f5341a022e 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 1f67624d5c..ace11d0546 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 50daa12d5b..f11bd8a636 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 57d1dc8972..9d4fe28d2e 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 9d67272dce..49d3f6d3ea 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 3b81bba7f5..9d55e5d171 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 e6c8d716e3..e5d0c1687c 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 fd9c1f72fd..e76d68766c 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 fcdc22db51..d58aed2346 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 b873b503be..43ed151302 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);