diff options
author | rsn8887 | 2017-02-18 12:25:47 -0600 |
---|---|---|
committer | rsn8887 | 2017-02-18 18:20:10 -0600 |
commit | c0b095d793cf2ffa71830cc7d1ebb153ac70eccb (patch) | |
tree | b1c2c3c7ee479f1f03739238f540e14789cd2ee7 /backends/events/openpandora | |
parent | 75004c429c2eb114b28cbb8adb10c6e34b2716c0 (diff) | |
download | scummvm-rg350-c0b095d793cf2ffa71830cc7d1ebb153ac70eccb.tar.gz scummvm-rg350-c0b095d793cf2ffa71830cc7d1ebb153ac70eccb.tar.bz2 scummvm-rg350-c0b095d793cf2ffa71830cc7d1ebb153ac70eccb.zip |
SDL: Cleanup, replaced _km.multiplier with #define
Diffstat (limited to 'backends/events/openpandora')
-rw-r--r-- | backends/events/openpandora/op-events.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/backends/events/openpandora/op-events.cpp b/backends/events/openpandora/op-events.cpp index dbfcc4ed2c..abb1458d66 100644 --- a/backends/events/openpandora/op-events.cpp +++ b/backends/events/openpandora/op-events.cpp @@ -126,18 +126,18 @@ bool OPEventSource::remapKey(SDL_Event &ev, Common::Event &event) { switch (ev.key.keysym.sym) { case SDLK_LEFT: event.type = (ev.type == SDL_KEYDOWN) ? Common::EVENT_LBUTTONDOWN : Common::EVENT_LBUTTONUP; - processMouseEvent(event, _km.x / _km.multiplier, _km.y / _km.multiplier); + processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); return true; break; case SDLK_RIGHT: event.type = (ev.type == SDL_KEYDOWN) ? Common::EVENT_RBUTTONDOWN : Common::EVENT_RBUTTONUP; - processMouseEvent(event, _km.x / _km.multiplier, _km.y / _km.multiplier); + processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); return true; break; #if defined(SDL_BUTTON_MIDDLE) case SDLK_UP: event.type = (ev.type == SDL_KEYDOWN) ? Common::EVENT_MBUTTONDOWN : Common::EVENT_MBUTTONUP; - processMouseEvent(event, _km.x / _km.multiplier, _km.y / _km.multiplier); + processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); return true; break; #endif @@ -150,12 +150,12 @@ bool OPEventSource::remapKey(SDL_Event &ev, Common::Event &event) { switch (ev.key.keysym.sym) { case SDLK_HOME: event.type = Common::EVENT_LBUTTONDOWN; - processMouseEvent(event, _km.x / _km.multiplier, _km.y / _km.multiplier); + processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); return true; break; case SDLK_END: event.type = Common::EVENT_RBUTTONDOWN; - processMouseEvent(event, _km.x / _km.multiplier, _km.y / _km.multiplier); + processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); return true; break; case SDLK_PAGEDOWN: @@ -188,12 +188,12 @@ bool OPEventSource::remapKey(SDL_Event &ev, Common::Event &event) { switch (ev.key.keysym.sym) { case SDLK_HOME: event.type = Common::EVENT_LBUTTONUP; - processMouseEvent(event, _km.x / _km.multiplier, _km.y / _km.multiplier); + processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); return true; break; case SDLK_END: event.type = Common::EVENT_RBUTTONUP; - processMouseEvent(event, _km.x / _km.multiplier, _km.y / _km.multiplier); + processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); return true; break; case SDLK_PAGEDOWN: |