aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordhewg2011-03-18 22:14:54 +0100
committerdhewg2011-03-18 22:14:54 +0100
commit3e3619feb87c9b63a0dae08c2dd29ed43dc1bc82 (patch)
treeeee42782f2bed8ac3f4f881b154699967d484c38
parente056bfca9c0ef1a07f4a9703d842ffa669096b0d (diff)
downloadscummvm-rg350-3e3619feb87c9b63a0dae08c2dd29ed43dc1bc82.tar.gz
scummvm-rg350-3e3619feb87c9b63a0dae08c2dd29ed43dc1bc82.tar.bz2
scummvm-rg350-3e3619feb87c9b63a0dae08c2dd29ed43dc1bc82.zip
ANDROID: Cleanup
-rw-r--r--backends/platform/android/events.cpp32
1 files changed, 14 insertions, 18 deletions
diff --git a/backends/platform/android/events.cpp b/backends/platform/android/events.cpp
index 2f6049224a..5fc10b2161 100644
--- a/backends/platform/android/events.cpp
+++ b/backends/platform/android/events.cpp
@@ -381,14 +381,14 @@ void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3,
case JKEYCODE_DPAD_DOWN:
case JKEYCODE_DPAD_LEFT:
case JKEYCODE_DPAD_RIGHT:
- {
- if (arg1 != JACTION_DOWN)
- return;
+ if (arg1 != JACTION_DOWN)
+ return;
- e.type = Common::EVENT_MOUSEMOVE;
+ e.type = Common::EVENT_MOUSEMOVE;
- e.mouse = getEventManager()->getMousePos();
+ e.mouse = getEventManager()->getMousePos();
+ {
int16 *c;
int s;
@@ -408,13 +408,13 @@ void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3,
*c -= f;
else
*c += f;
+ }
- clipMouse(e.mouse);
+ clipMouse(e.mouse);
- lockMutex(_event_queue_lock);
- _event_queue.push(e);
- unlockMutex(_event_queue_lock);
- }
+ lockMutex(_event_queue_lock);
+ _event_queue.push(e);
+ unlockMutex(_event_queue_lock);
return;
@@ -431,15 +431,11 @@ void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3,
return;
}
- {
- const Common::Point &m = getEventManager()->getMousePos();
-
- e.mouse = m;
+ e.mouse = getEventManager()->getMousePos();
- lockMutex(_event_queue_lock);
- _event_queue.push(e);
- unlockMutex(_event_queue_lock);
- }
+ lockMutex(_event_queue_lock);
+ _event_queue.push(e);
+ unlockMutex(_event_queue_lock);
return;
}