summaryrefslogtreecommitdiffstats
path: root/native/android/input.cpp
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-07-08 19:10:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-07-08 19:10:17 -0700
commitd8a6271bb1da4ee2a8ae126b532f1b5f302decb8 (patch)
tree5de91054c0b6d73707104eb6ae30d0c612e94665 /native/android/input.cpp
parent2a57917a5cc10cbfea9a2f7ed7b040ce80c6705b (diff)
parent49159f0748c704e53a7bd754f26113d9ab844a97 (diff)
downloadframeworks_base-d8a6271bb1da4ee2a8ae126b532f1b5f302decb8.zip
frameworks_base-d8a6271bb1da4ee2a8ae126b532f1b5f302decb8.tar.gz
frameworks_base-d8a6271bb1da4ee2a8ae126b532f1b5f302decb8.tar.bz2
am 49159f07: am 74bf59b4: Merge "Add new glue code for writing native apps." into gingerbread
Merge commit '49159f0748c704e53a7bd754f26113d9ab844a97' * commit '49159f0748c704e53a7bd754f26113d9ab844a97': Add new glue code for writing native apps.
Diffstat (limited to 'native/android/input.cpp')
-rw-r--r--native/android/input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/android/input.cpp b/native/android/input.cpp
index 015a1ce..89d53e2 100644
--- a/native/android/input.cpp
+++ b/native/android/input.cpp
@@ -186,9 +186,9 @@ float AMotionEvent_getHistoricalSize(AInputEvent* motion_event, size_t pointer_i
}
void AInputQueue_attachLooper(AInputQueue* queue, ALooper* looper,
- ALooper_callbackFunc callback, void* data) {
+ ALooper_callbackFunc* callback, void* data) {
queue->setPollLoop(static_cast<android::PollLoop*>(looper));
- ALooper_setCallback(looper, queue->getConsumer().getChannel()->getReceivePipeFd(),
+ ALooper_addFd(looper, queue->getConsumer().getChannel()->getReceivePipeFd(),
POLLIN, callback, data);
}