SDL: Make first param of OSystem_SDL::remapKey const

svn-id: r45791
This commit is contained in:
Max Horn 2009-11-09 23:29:33 +00:00
parent a1496515ce
commit 9d816caf56
12 changed files with 12 additions and 12 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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;
}

View File

@ -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);

View File

@ -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

View File

@ -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();

View File

@ -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;
}

View File

@ -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);
};

View File

@ -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)) {

View File

@ -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);
};

View File

@ -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;

View File

@ -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);