diff options
| author | 2010-07-08 12:25:20 -0700 | |
|---|---|---|
| committer | 2010-07-08 12:25:20 -0700 | |
| commit | 74bf59b450daf9e7e6bf234f01db164099edbfd5 (patch) | |
| tree | 64289800e3a30943a32b9f81984b41c0f609344d /native/android/input.cpp | |
| parent | b29e3b9cd00ced686a74121d3ca9c7380754793f (diff) | |
| parent | 85448bbecd4e0909eecfab15b7c3605f114d0427 (diff) | |
Merge "Add new glue code for writing native apps." into gingerbread
Diffstat (limited to 'native/android/input.cpp')
| -rw-r--r-- | native/android/input.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/android/input.cpp b/native/android/input.cpp index 015a1ced432b..89d53e279057 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); } |